Israeli Prime Minister Benjamin Netanyahu has declared that the war in Gaza is “not over” following the alleged killing of Hamas leader Yahya Sinwar, even as Western leaders expressed hope that his death would present an opportunity to end the yearlong conflict.