Benjamin Netanyahu has been “rightfully criticized” for not preventing Hamas’ October 7 attack, the former US president has said