A search has been suspended for a missing swimmer who may have been attacked by a shark, officials in California said.