The U.S. Geological Survey said it originated about 8 miles deep just a few miles off the York Harbor coastline.