More captives are freed as Israel and Hamas agree to extend