Both sides said that several civilians were also released as part of the swap, which the United Arab Emirates mediated.