Dmitrios Pagourtzis fired again through the wooden part of the door and fatally hit a student in the chest. He then lingered for about 30 minutes in a warren of four rooms, killing seven more students and two teachers before exchanging gunfire with police and surrendering, officials said.