North Korea test-fired what appeared to be two intermediate range ballistic missiles on Thursday, but both failed, the U.S. military said.