You can try to sprinkle baking soda over the rug, which will help to absorb odors. Vacuum the baking soda up after it sits for at least 30 minutes.