The quake struck at 6:23 p.m. local time in the middle of the sea and had a depth of 10 kilometers, the USGS said.