China has test-fired an intercontinental ballistic missile into the Pacific Ocean.