A 4.8-magnitude earthquake struck near New York City on Friday morning, the U.S. Geological Survey said, shaking buildings up and down the East Coast and surprising residents in an area that rarely experiences notable seismic activity.

The quake's epicenter was in Tewksbury in central New Jersey, about 64 kilometers west of New York City. It occurred just after 10:20 a.m. at a depth of 4.7 kilometers, the USGS said.

At 5:59 p.m. there was a small but noticeable aftershock, which had a magnitude of 4.0, according to the USGS.