Israel’s head of military intelligence resigns over October 7 attack