People look at a damaged hospital building following an earthquake in Mamuju, West Sulawesi province, Indonesia, January 15,…
People look at a damaged hospital building following an earthquake in Mamuju, West Sulawesi province, Indonesia, Jan. 15, 2021. (Antara Foto/Akbar Tado via Reuters)

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

The epicenter of the quake was 6 kilometers northeast of Majene city at a depth of 10 kilometers. 

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 neighboring province of Mamuju. 

Members of a search-and-rescue agency team dig through rubble after an earthquake, in Mamuju, West Sulawesi Province, Indonesia, Jan. 15, 2021. (Basarnas Sulbar/via Reuters)

Thousands had fled their homes to seek safety when the quake hit just after 1 a.m. local time 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. 

Videos on social media showed residents fleeing to higher ground on motorcycles, and a child trapped under rubble as people tried to remove debris with their bare hands. 

Some buildings were badly damaged, including two hotels, the governor's office and a mall, Sudirman Samual, a journalist based in Mamuju, north of the epicenter, told Reuters. 

At least one route into Mamuju had been cut off, he said, because of damage to a bridge. 

A damaged car and buildings are seen following an earthquake in Mamuju, West Sulawesi province, Indonesia, Janu. 15, 2021. (Antara Foto/Akbar Tado via Reuters)

Hours earlier on Thursday, a magnitude 5.9 earthquake struck in the same district damaging several houses. 

Indonesia's disaster agency said a series of quakes in the past 24 hours had caused at least three landslides, and the electricity supply had been cut. 

Straddling the so-called Pacific Ring of Fire, Indonesia, a nation of high tectonic activity, is regularly hit by earthquakes. 

In 2018, a devastating magnitude 6.2 quake and subsequent tsunami struck the city of Palu, in Sulawesi, killing thousands of people.