Have your dog on a leash waiting for the event.
When the event happens and your dog starts barking, wait for them to stop, even just for a moment to catch their breath, then signal your dog with a flashlight aimed at your dog's feet and provide a treat.
Repeat the procedure every day for a few minutes each day.