Hamas has agreed to a cease-fire while Israel continues its attacks on Rafah, one of the last remaining places in the Gaza Strip sheltering Palestinians.