Hamas said it had accepted a proposal for a new cease-fire, which would see some hostages released from captivity in Gaza.