D.K.
I had that problem just recently! PetSmart sells a spray-on product which contains enzymes. I'm not a scientist, but somehow, these enzymes break down the "matter" remaining in the carpet and eliminates the smell. It worked on dog messes and human vomit for me.