And we took all his cities at that time, killing the inhabitants of them, men and women and children. We left nothing of them: Deuteronomy 1: 34
Israel has a right to defend herself, whatever that may entail.