The US and South Korea say Pyongyang has launched what appears to be a medium-range missile, ahead of talks between US President Donald Trump and Chinese President Xi Jinping.