UPDATED POST: Suspect in Gardena High School shooting surrenders; students in classroom safe

A student dressed in black who allegedly shot three fellow pupils at Gardena High School was holed up in a classroom, according to police.

Police were talking to the alleged gunman, but he has not surrendered.

The shooting occurred about 10:30 a.m. on the campus at 1301 W. 182nd St. The alleged gunman apparently pulled the gun out of his backpack. Officials said the gun went off, with one bullet hitting several students. One students was hit in the head, another in the neck. Their conditions were unknown.

It's unclear whether the gun went off accidentally or whether the student intentionally opened fire.

RELATED:

Photos: Gardena High School shooting

2 shot at Gardena High School; gunman still at large

Coverage of 2002 shooting on Gardena High School campus

-- Andrew Blankstein and Sam Allen

Photo: Police gather near Gardena High School. Credit: KTLA