(CNN) A strong earthquake has struck the west coast of Indonesia Friday, according to the United States Geological Survey.

The USGS said the 6.9-magnitude earthquake struck just after 8 a.m. ET. It said the epicenter was in the Sunda Strait, 65 miles from the city of Tugu Hilir in the province of Banten, on the island of Java.

The shaking was felt in Indonesia's capital city of Jakarta, 240 miles from the epicenter, prompting people to run out of their homes. The earthquake lasted around 40 seconds.

The Indonesia's Meteorology, Climatology and Geophysical Agency issued a small tsunami warning for four areas following the earthquake.

The agency lifted the alert just after 10 a.m. ET after there was no change in the sea water level.

Read More