The epicenter of the quake was six kilometers (3.73 miles) northeast of Majene city at a depth of 10 kilometers, according to Meteorology, Climatology, and Geophysical Agency (BMKG).
Aftershocks could trigger a possible tsunami, the agency warned, urging residents in the area to take precaution and move to higher ground.