North Korea has test-fired a new type of solid-fuel intercontinental ballistic missile, which flew farther and higher than any previous test.