(CNN) Three people were killed and seven others injured when a strong earthquake hit Indonesia late Friday, authorities said.

The 6.5-magnitude quake was centered in Cipatujah, in the western part of Java, the US Geological Survey said, at a depth of 91.9 kilometers (about 57 miles).

Residents felt the quake about 190 miles away (305 kilometers) in the capital of Jakarta, where people briefly evacuated to the ground floor of their high-rises.

Residents gather outside their apartment blocks in Jakarta after the earthquake.

Tremors were also felt in the cities of Bandung, more than 63.5 miles away (102.1 kilometers) and Yogyakarta, more than 211 miles away (339.9 kilometers), authorities said.

A tsunami alert was issued after the quake, which Indonesian authorities recorded at 11:47 p.m. as 6.9 magnitude, according to Sutopo Purwo Nugroho, spokesman for Indonesia's National Disaster Management and Mitigation Agency

Read More