A magnitude 5.2 earthquake struck in the Indian Ocean on Sunday, around 536 km (333 miles) east of Ile Rodrigues in Mauritius, the U.S. Geological Survey said.