That's what countries do to each other in times of war. The way around it is for Hamas to recognize Israel, renounce violence and accept the prior agreements signed by the Palestinian Authority. Until then, Israel regards Gaza as an enemy territory (not a state).
Death toll from car bombs in Iraq rises to 56 (AP)
from the article: Netanyahu to UN Chief: Upcoming Gaza flotilla must be stopped