South Korea's president accused Ukraine of undermining his position after it revealed their agreement on handing over North Korean POWs.