…they wove and ducked around him, unable to finish him — Bellatrix was still fighting too, fifty yards away from Voldemort, and like her master she dueled three at once: Hermione, Ginny and Luna, all battling their hardest, but Bellatrix was equal to them, and Harry’s attention was diverted as a Killing Curse shot so close to Ginny that she missed death by an inch — He changed course, running at Bellatrix rather than Voldemort, but before he had gone a few steps he was knocked sideways.
There are no more uses of "divert" in the book.
Show samples from other sources
I tried to divert her attention.
A fool and water will go the way they are diverted.