yep...... a good sugar water solution spray will calm a swarm of bees.
They are in the midst of a sexual act, colony reproduction, and have their minds on that. They are deciding where to go
Since there was no photo, one wonders f it was really honey bees
Honey bees, unlike their African cousins aren’t that aggressive. Hornets and wasps however tend to be very aggressive.