Hundreds of drones seen flying over military installations last year were conducting surveillance, according to a senior military official.