Israeli attacks across Gaza have killed at least two Palestinians, hours after Hamas agreed to a draft peace deal.