A 14-year-old boy held 29 students and a teacher at gunpoint in Philippi, W.Va., on Tuesday afternoon before he released them after negotiations and surrendered, the authorities said. No injuries were reported. The student took a pistol into a class at Philip Barbour High School, Lt. Michael Baylous of the State Police said in a statement. The superintendent of Barbour County Schools, Jeffrey Woofter, credited the teacher for maintaining control when classes were about to change and praised the Philippi police chief for talking the suspect into giving up. Mr. Woofter said the teacher had talked the boy into not allowing the next group of students to enter the classroom. “The teacher did a miraculous job,” he said.