In ceremonies in Gaza, the group freed five of six hostages that were set for release in a swap for Palestinian prisoners.