The Israel-Hamas war again shows that we need to stop thinking there are military solutions to political problems