Hamas hides among unwitting civilians, who have no way of controlling its activities. This fact does not give Israel the right to kill innocent non-combatants, not even unintentionally. Besides, murder is not "unintentional" when you know it is inevitable.
