Israeli head of military Dan Halutz resigns