Israel's army chief Herzi Halevi's resignation had been widely anticipated in the wake of the deadliest single day in Israel's history.