Hamas released eight hostages, including three Israelis and five Thais, as part of a hostage-for-prisoner exchange.