A 4.5-magnitude earthquake hit near Silicon Valley in the United States, followed by 11 aftershocks.