1) offtopic
2) The Israeli military said the structures had been built illegally.
Morality does not subscribe to some kind of arithmetic where doing good deeds can somehow cancel the evil that you also commit.
Is not the job of the army to declare what is legal or illegal in a democracy. Countries have a judicature system for that.
A bomb destroying your home with one minute warning is not equivalent to a court order, and can't replace it. Would be seen in any real democracy with a minimum respect by the rule of law as a ridiculously illegal move (and severely prosecuted).
Well of course they did. Would any military say otherwise in the same situation?