Halevi said his decision stemmed from his 'responsibility for the IDF’s failure' during the Hamas-led Oct. 7, 2023, cross-border massacre