China "firmly opposes" North Korea's nuclear test, the foreign ministry of Pyongyang's main diplomatic protector says, after its fifth atomic blast.