"Shaken, not stirred." If 007 had become a carpet salesman instead of a secret agent, his catchphrase would have been "spotted, not rubbed". When cleaning a carpet, never rub the stain, otherwise you will push the dirt even further into the fabric. Instead, carefully dab at the stain with a clean cloth or a paper towel, working your way from the edge to the middle.
You should also act immediately. The faster you tackle the stain, the easier it will be to remove.