By Michael Martinez, CNN
(CNN) - A 16-year-old student who blasted a California high school classroom with a shotgun Thursday was targeting two classmates because he felt he'd been bullied, the local sheriff said Thursday night.
One student was hit and was in critical but stable condition Thursday night, and the shooter was in custody after a teacher and the school's campus supervisor talked him into putting his shotgun down.
Kern County Sheriff Donny Youngblood said he did not know whether bullying had actually occurred between the Taft Union High School students.
"But certainly he (the shooter) believed that the two people he had targeted had bullied him," Youngblood said at an evening news conference in Taft, about 30 miles from Bakersfield.
The young shooter was still being interrogated Thursday evening, Youngblood said, adding that the youth will be charged as a juvenile with attempted murder. It will be up to prosecutors to decide whether he should be charged as an adult, the sheriff said.
The name of the student in custody was not released.
Youngblood laid out a detailed scenario of the hours before the shooting, saying the student planned the assault the night before, and took a shotgun belonging to his brother.
The student did not show up for school on time Thursday, Youngblood said, instead appearing about half through the first period of classes. He was caught on school surveillance cameras, the sheriff said, using a side entrance instead of the school's main door and "appearing nervous" as he tried to conceal the shotgun when he entered the school.
The gunman fired directly at one student, who was hit, then as students rushed to flee, the gunman fired again, Youngblood said.
"Miraculously, (the second shot) didn't injure anyone."
Youngblood credited the teacher and the campus supervisor - a campus monitor on the school's staff - with bravely facing off with the young gunman. Youngblood identified the teacher as Ryan Heber and the campus supervisor as Kim Lee Fields.
"They stood there face-to-face (with the gunman) not knowing whether he's going to turn that shotgun on them," Youngblood said.
CNN’s Schools of Thought blog is a place for parents, educators and students to learn about and discuss what's happening in education. We're curious about what's happening before kindergarten, through college and beyond. Have a story to tell? Contact us at firstname.lastname@example.org