A 6.2-magnitude earthquake on Indonesia’s Sulawesi island killed at least seven people, injured hundreds and damaged many buildings on Friday, the country’s disaster mitigation agency said, as panicked residents fled to safer areas.

The epicentre of the quake was six kilometres (3.73 miles) northeast of Majene city at a depth of 10 kilometres.

Initial information from the country’s disaster mitigation agency showed that four people had died and 637 others were injured in Majene, while there were three more fatalities and two dozen injured in the neighbouring area of Mamuju.

Thousands had fled their homes to seek safety when the quake hit just after 1 am local time on Friday morning, damaging at least 60 homes, the agency said.

The quake was felt strongly for about seven seconds but did not trigger a tsunami warning.