The earthquake was centered near Whitehouse Station, New Jersey, and could be felt as far south as Washington, D.C., and as far north as Maine.