You'll need a solvent-based spotting treatment. Spot Shot may work. It's been used to get lipstick off the carpet. Spray the afflicted area, but do not massage it or use a brush. Blot the area gently with a clean cloth or towel. You might enlarge the place if you rub it.
Use a tiny amount of the spotting solution at a time to avoid oversaturating the area. If too much of these solvent-based spotters are applied, it might cause harm to the carpet backing. If you have a home carpet spotter or carpet shampoo machine, rinse the area well after removing all or most of the stain. It will aid in the removal of any spot cleaning solution that may gather dirt later.
If you can't eliminate the spot with what you've got, seek expert assistance. They may be able to recommend a cleaning that you can buy locally, or they may be able to tell you how much it would cost for them to come out and remove it.