The wounded -- some still wearing their green school blazers -- flooded into hospitals as terrified parents searched for their children. By evening, funeral services were already being held for many of the victims as clerics announced the deaths over mosque loudspeakers.
The government declared three days of mourning for what appeared to be Pakistan's deadliest since a 2007 suicide bombing in the port city of Karachi killed 150 people.
A little more than 1,000 students and staff were registered at the school, which is part of a network run by the military, although the surrounding area is not heavily fortified. The student body is made up of both children of military personnel as well as civilians.
Most of the students appeared to be civilians rather than children of army staff, said Javed Khan, a government official. Analysts said the militants likely targeted the school because of its military connections.
In a statement to reporters, Taliban spokesman Mohammed Khurasani claimed responsibility for the attack, saying it was retribution for the military's operation in nearby North Waziristan, the northwestern tribal region where the group's fighters largely have been based.
"We targeted their kids so that they could know how it feels when they hit our kids," Khurasani said. He said the attackers were advised not to target "underage" children but did not elaborate on what that meant.