Jakarta, Indonesia quake
People stand outside a shopping mall following an earthquake in Jakarta, Indonesia, Friday, Aug. 2, 2019. A strong earthquake struck off the coast of Indonesia's Java island on Friday, swaying buildings as far away as the capital and prompting national authorities to urge those in coastal areas to head to higher ground in case of a tsunami. Image Credit: AP

Jakarta: At least four persons were killed, and four others were injured and thousands displaced when a 6.9 earthquake struck the strait between the Indonesian islands of Java and Sumatra, officials said on Saturday.

The quake that occurred on Friday night, caused structural damage in 58 houses and a mosque in the municipality of Pandeglang, located closest to the epicenter and the worst affected, the National Disaster Management Agency said in a statement.

Some of those who died were due to heart attack or fatigue, as people rushed away from the coastline, Agus Wibowo, spokesman of the disaster mitigation agency told a news briefing.

More than 200 buildings were damaged by the quake, he said.

The tremor was also felt in the capital city of Jakarta, located around 250 km northwest, and damaged buildings in West Java's Bandung, over 300 km from the epicenter, reports Efe news.

Earthquake hit in Pandeglang, Banten Indonesia
A woman is seen inside her house damaged after an earthquake hit in Pandeglang, Banten province, Indonesia, August 3, 2019. Image Credit: REUTERS

The authorities initially issued a tsunami alert that led people in several parts of the coast of Java and Sumatra, Indonesia's most populated regions, to move to higher areas. But the warning was deactivated two hours later.

The US Geological Survey, which records seismic activity around the world and had initially estimated the earthquake's magnitude to be 6.8, put the epicenter around 90 km southwest of Pandeglang and its hypocenter at a depth of 42 km.

Indonesia sits on the Pacific Ring of Fire, an area of massive seismic and volcanic activities with 127 active volcanoes.

It experiences about 7,000, mostly-moderate, quakes a year.

Last September, a 7.5-magnitude earthquake struck the island of Sulawesi and triggered a tsunami, causing over 2,000 deaths and leaving 200,000 displaced from Palu and Donggala.