R.M.
I've been having the same thing happen with bees and wasps since we've had this July heat wave going on. The only things I've found that helped distract them was to run the sprinkler or hose for a few minutes and wet the grass before we swim and to put out a few tupperware containers with water in various spots on the opposite side of the yard. I have had to blast the wasps with insecticide if they persisted (after they fly away from the pool and my child)...but I try not to b/c I don't like having my DD around that stuff if I can help it.