An earthquake struck the East Coast of the United States on Friday morning, according to the U.S. Geological Survey, causing buildings to shake and rattling nerves from Maryland to Maine.