West Java Governor Ridwan Kamil told a news conference that some 326 people were seriously injured.
According to the United States Geological Survey (USGS), the earthquake struck the Cianjur region of West Java on Monday at a depth of 10 kilometers (6.2 miles).
The earthquake has displaced 13,782 people – all of whom will be accommodated in 14 refugee camp sites. At least 2,345 houses have been damaged.
According to the local office of the National Disaster Management Agency (BNPB), four schools and 52 houses collapsed or were badly damaged. According to the agency, a mosque and a hospital were also damaged.
BNPB said there was no tsunami threat, Reuters reported.
Herman Suhrman, a government official in Cianjur, told the media that some residents were trapped under the debris of the collapsed buildings. News channel Metro TV showed hundreds of victims being treated in the hospital parking lot.
It said an Islamic boarding school was also damaged, while communications were disrupted due to a power failure.
According to Reuters, TV footage showed residents huddled outside buildings almost completely turned into rubble.
A man named Muchalis said he felt “a big jolt” and that the walls and ceiling of his office were damaged.
“I was very shocked. I was worried that another earthquake would happen,” Muchlis told Metro TV.
The BMKG warned of the risk of landslides, especially in the event of heavy rain, as 25 aftershocks were recorded in the two hours following the quake.
Speaking at a press conference earlier, Governor Kamil said the death toll was likely to rise further.
“With many residents still trapped at the scene, we believe the number of injured and dead victims will continue to rise over time,” Kamil said on Monday.
Rescuers are currently unable to reach some of those trapped, they said, adding that the situation remains chaotic with the possibility of further aftershocks.
Kamil said government officials are currently constructing tents and shelters for the victims while meeting their basic needs.
Indonesia lies on the “Ring of Fire” surrounding the Pacific Ocean, which triggers frequent earthquakes and volcanic activity. One of the most seismically active regions on the planet, it stretches from Japan and Indonesia on one side of the Pacific to California and South America on the other.
In 2004, a magnitude 9.1 earthquake on the island of Sumatra in northern Indonesia triggered a tsunami that affected 14 countries, killing 226,000 people along the Indian Ocean coast, more than half of them in Indonesia.