Take her to the vet - she may have impacted or infected anal glands, and they need to be expressed! This is not an uncommon problem in small breeds.