I assume this midge had just emerged from the gall it was resting next to. The gall doesn't seem to match any of the 16 known creosote bush galls illustrated in
(1), but 15 of the 16 are
Asphondylia species, and the one
Contarinia gall is nothing like this.