North Korea's top diplomat has called US President Donald Trump's speech to the UN "the sound of a barking dog".