Exchange comes amid a deadlock in US-brokered negotiations to end the four-year war between the two countries.