Israel and Hamas are expected to sign a deal soon agreeing to a "first phase" ceasefire to end the two-year war in the Gaza Strip.