It seems like a surge in the power high enough to send electricity through the insulation(might have been old/weak to begin with) and down the poll to give your dog a shock. Aside from replacing the insulation not much anything anyone could do about it. Power surges are somewhat common. Might want to have the dog looked at just to be sure it wasn't hurt.