Hamas, Israel reach prisoner exchange deal