JAKARTA, Aug 3 (Reuters) - A powerful undersea earthquake that struck off the Indonesian islands of Sumatra and Java has killed at least one person and briefly displaced more than 1,000 coastal-dwellers who feared a tsunami, Indonesia's disaster agency said on Saturday.
Indonesia issued a tsunami warning within minutes of 6.8-magnitude quake on Friday night. The warning last two hours and sent people living along the coastline fleeing to higher ground.
The strong quake was felt in the capital Jakarta and people rushed out of high-rise buildings.
One person died of a heart attack amid the panic in the province of Banten on Java and at least four others were injured, the disaster mitigation agency said in a statement.
The agency said people who took to higher ground, including about 1,000 taking shelter in the gubernatorial office in the Lampung province, had returned home.
The quake destroyed 34 houses and caused minor damage to dozens of other buildings, the agency said.
The U.S Geological Survey put the epicentre in the Indian Ocean about 227 km (141 miles) from the city of Teluk Betung on Sumatra.
Indonesia is situated on the so-called Pacific Ring of Fire, which is frequently hit by earthquakes and sometimes accompanying tsunami.
The most devastating in recent Indonesian history was on Dec. 26 in 2004, when a magnitude 9.5 quake triggered a massive tsunami that killed around 226,000 people along the shorelines of the Indian Ocean, including more than 126,000 in Indonesia.
Last year, a tsunami hit the city of Palu in Sulawesi island, killing thousands, while a crater collapse at the Anak Krakatau volcano triggered a tsunami that killed at least 430 people in an area near the latest quake. (Reporting by Agustinus Beo Da Costa and Gayatri Suroyo; Editing by Michael Perry)