A US military aircraft has flown for the first time with an artificial intelligence robot co-pilot sharing command of operations.