The Israeli prime minister's comments come after Hamas agreed to release hostages under a US-proposed peace plan.