Can't really tell what it is from the pics, flies only have 1 pair of wings, whereas wasps should have 2 (although they can be joined by hooks in the case of bees which look like only 1 pair), most wasps' abdomen are constricted where it joins onto the thorax.