A little old lady's poodle attacking me is not a scenario that keeps me up at night
But you did well
Re: electric fences...they are a deterrent, but a determined (or stupid) dog with a tolerance for the zap they give can shoot right through it. After all, once the dog is through, the zap goes away just like if the dog backs up and gets AWAY from the electric fence. Once they figure that out, the fence loses its effectiveness. This is why God invented chain link and privacy fencing.
Talk to your neighbor so he/she knows that the dog's behavior is not being completely controlled by the electric fence.