A former head of the Mossad spy agency said that in 2011 Prime Minister Benjamin Netanyahu ordered the country’s military to prepare to strike Iran at short notice, prompting the spy chief to check whether the premier had the authority to begin a process he was sure would lead to war.