A hospital is being evacuated and a number of fires have broken out after an earthquake strikes a Californian desert town.