A standoff over the release of dead Israeli hostages and Palestinian prisoners appears to ended with Israel and Hamas reaching an agreement.