A North Korean military official has threatened the U.S. and South Korea as it prepares for nuclear test.