Ukrainian President Volodymyr Zelenskyy and the Russian Defense Ministry have confirmed the exchange.