It's called collateral damage.
Unfortunate, but who ever told you that war was nice and neat? And if they don't want doctors and patients killed, then stop storing weapons and harboring terrorists there!
See how simple it is?
Oh, but you don't like war? Then accept the fact that Israel has a right to exist and agree to a peaceful co-existence just as many within the Middle East have already done!