A roof collapse at a school in northwest Pakistan killed 32 children and one teacher, prompting authorities to launch safety inspections of schools across the region.