The head of Israel's military, Major General Herzi Halevi, resigned on Tuesday over his responsibility for its "failure" during the Palestinian militant group Hamas' attack on October 7, 2023.