How Israel’s war went wrong