The Israeli military’s intelligence chief has resigned, saying he took responsibility for the failures before Hamas’s attack on Israel on...