The alleged mastermind of the 2014 attack on a school in Pakistan in which more than 150 people died, most of them children, has been killed in an American drone strike in Afghanistan, the Pakistan military and sources in the Pakistani Taliban said.