Were they AoEing you through any kind of obstruction/wall/roof/barrier between you and the mage? If so, that's abusing an in-game bug and action can be taken against the player.
I've read that some guards are scripted like mobs, i.e.: they won't attack a hostile player unless they're close enough in their aggro range. Were any guards close to the mage or were they far away?