No tsunami warning had been issued for the earthquake, which occurred more than 71 kilometers from land and at a depth of 131 km, Indonesia's meteorological, climatology and geophysical agency (BMKG) said in a tweet.
There were no reports of casualties or damage.