Militant killed in Pakistan school attack