As part of the swap, Palestinian militants in Gaza freed five Thai and three Israeli hostages, handing them over to the Red Cross amid chaotic crowds.