Police say a shooting at a San Diego mosque has killed three men and left both shooters dead of apparent self-inflicted wounds.

The complex is home to the Al Rashid school where crowds of young students were seen being evacuated on Monday following reports of the shooting.

Police said people reported multiple shots at the Islamic Center of San Diego, about 9 miles north of downtown San Diego.

The attack is being investigated by police as a possible hate crime.