When I had a couple of kittens one loved to lick and chew the power cable to the TV.
A vey thin wipe of Colemans English mustard (well I was about a mile from the Colemans works) did the trick
Some said it was a cruel thing to do. I maintained I'ld rather the little mite sneeze whilst running for the water bowl a couple of times than find him cooked behind the TV.
Besides with a CAT5 wouldn't that have been cannibalism.
Other wise if you can find a patch of matching carpet. Cut a neat hole aound the damage, Square is easyest.
get a patch of cloth about twice the size of the hole. Feed it through the hole so it's lying flat underneath
Then smear or spay some glue between the cloth and carpet leaving some weight on top so they glue together.
then cut as precisely as you can the matching patch of carpet to the hole and stich down so its stuck to the cloth now backing the hole.
Use the warp and (other word begining with W I cant remember) of the carpet as a guide as where to cut. If you do this well it the repair becomes invisible.
Or if the hole has the carpet meeting itself then just glue the cloth underneath with out a patch.
Ive done this where a house mate left a hot iron on the floor. the only way you would have spotted the repair was when the carpet was lifted off the floor revealing the cloth behind.