At least two students were shot in a middle school classroom in Los Angeles on Thursday, and a female suspect was taken into custody, the police said.

The police received a call about the shooting at 8:55 a.m. local time and responded to Salvador Castro Middle School, in the Westlake North neighborhood. The school shares its campus with Belmont High School.

Officer Drake Madison of the Los Angeles Police Department said that two 15-year-old students had been shot. One, a boy, was in critical but stable condition after being shot in the head, and the second, a girl, was in fair condition after she was shot in the wrist. Three other people suffered minor injuries. The police found a gun on the scene.

The police said that a 12-year-old girl was in custody and that they believed the shooting was unintentional. Doctors at Los Angeles County-USC Medical Center said the two victims are expected to fully recover.