They're fanning their wings to try to spread the [missing] queen's pheromones -- they're searching for their queen. This also serves the purpose of informing the other bees that they don't have a queen. This in turn will cause nurses to look for eggs they can raise queens from by feeding them royal jelly.