The quake was at a depth of 27 km (17 miles) and was followed by one of magnitude 5.3 in the same area, BMKG reported. Local online media said one person was injured in the head by falling wood.

Also on Sunday, east of the vast Indonesian archipelago, an earthquake of magnitude 7.6 struck the Eastern New Guinea region in Papua New Guinea, reportedly damaging property and spreading panic among residents.

Indonesia straddles the "Pacific Ring of Fire", where different tectonic plates of the Earth's crust meet and create frequent seismic activity.

(Reporting by Mrinmay Dey in Bengaluru and Stefanno Sulaiman in Jakarta; Editing by Daniel Wallis)