North Korea fires missile as UN envoy insists on 'right to test weapons'