In the days after Hamas attacked Israel on October 7, 2023, Benjamin Netanyahu seemed a shellshocked shadow of himself.