China’s foreign minister said on Sunday that dialogue was vital to resolve tensions over North Korea’s weapons program.