So what is the right thing to do?
The African bees guard their hive aggressively. If you encroach, the sentinels will fly into you to give you a warning (that sounds like what happened to this lady: she got hit by bees buzzing around her before the swarm attack). If you continue closer to the hive, you will then be attacked.
The correct thing to do is to take notice of the warning, and reverse your direction of travel. Going back where you came from and finding an alternate route will prevent the attack.