After 50 days of fighting, Israel, Hamas and the other Palestinian factions agreed on Tuesday to an Egyptian cease-fire proposal.