A magnitude 3.9 earthquake struck the Bay Area on Monday evening, officials with the U.S. Geological Survey say.