The U.S. Geological Survey said the earthquake struck near to the San Francisco area.