A gunman has opened fire with a pistol in a Californian classroom, killing a female teacher and injuring two students before taking his own life.

The students were not thought to have been deliberately targeted by the attacker but were wounded due to being in close proximity to his victim. The wounded pair were taken to hospital following the suspected “murder-suicide” at North Park elementary school in San Bernardino and the pupils were evacuated.

Their condition was not known but police said they were not related to either of the adults. School district spokeswoman, Maria Garcia, said the shooting was thought to have been a domestic dispute. We believe the teacher knew who the shooter was,” Ms Garcia said.