Hamas released 13 Israelis and four foreigners late Saturday in the second round of swaps under a cease-fire deal, the Israeli military said, after the militant group initially delayed the exchange for several hours and claimed that Israel had violated the terms of a truce deal.