DARPA , an agency within the U.S. Department of Defense , said the NAV program was initiated to develop an extremely small flying vehicle that could be used in either outdoor or indoor military missions .