Welcome to BYC!
I am so sorry about the fox attack. That is awful!! I have no idea how he got in. I have never used electric fences before so I just don't know. You might want to post this question in our Pests and Predators forums for more help with this. I hope someone there with more...