After tortuous, weekslong negotiations, Israel and Hamas reached an agreement Thursday for a brief ceasefire to begin on Friday morning and allow for the release of at least 50 women and children held hostage in Gaza.