Gaza chose war with Israel. Bad things happen in war.
Gaza elected Hamas to power. Hamas chose war with Israel. War is very ugly, and there is no perfect, precise war.