Is the sentence ‘The swarm of bees were enraged when their nest was moved.’
No, the sentence should be corrected to "The swarm of bees was enraged when their nest was moved."
"Swarm" is a collective noun that functions as a singular noun, so it should be paired with the singular verb "was" instead of "were".