Israel has sworn in its new army chief after the military’s failures during Hamas’s October 7, 2023, attack.