A magnitude 5.7 earthquake struck 216 km (135 miles) north-northwest of the capital of Tonga in the Pacific Ocean on Sunday, the U.S. Geological Survey said.