The earthquake was centered off the coast of Manhattan Beach, a city near Los Angeles, the US Geological Survey reported, and was followed by a series of aftershocks.