Panic erupted in the streets around the Islamic centre in San Diego where police said the "threat had been neutralised".