warding off, brushing off, waving off, shooing away
Я долго отгонял овода от собаки.
I spent a long time shooing a gadfly away from the dog.