Yun’s resignation comes amid hope that Pyongyang might be willing to sit down for talks with Washington.