The hostages were released in a raid that included a series of Israeli strikes in Rafah, the city on the southern edge of the Gaza Strip.