Who mentioned anything about "just"? The OP said the attacks were in the illegal settlements, and they weren't
In any case, despite being backed by that same military, the settlements *are* illegal. So maybe there are other reasons beyond the cudgel that Israel as a state is not