Police have responded to a shooting at a mosque in California, with officials saying the threat had been ‘neutralised’.