JAKARTA, Indonesia — Indonesian authorities say a 6.8 magnitude earthquake that hit off Java island has killed four people and damaged more than 200 houses, swaying buildings as far away as the capital.

The U.S. Geological Survey says Friday night’s quake was centered 151 kilometers (94 miles) from Banten province off the island’s southwest coast.

Agus Wibowo, the National Disaster Mitigation Agency’s spokesman, said Saturday that four people died while fleeing in panic to safety in Banten and West Java. Four others were injured.

He said 223 houses were damaged, mostly in Banten’s Pandeglang region, where a deadly tsunami struck in the dark without warning last December.

Indonesia, home to more than 260 million people, is prone to earthquakes and volcanic eruptions due to its location along the Pacific “Ring of Fire.”