A 16-year-old student armed with a shotgun walked into class in a high school near Bakersfield on Thursday and shot one student, fired at another and missed, and then was talked into surrendering by a teacher and another staff member.