Ukraine said one of its naval vessels came under artillery attack from the shore on Aug. 31, in what pro-Russian rebels claimed as the first sea victory of their separatist war.