Genital after shave care

How come I get pimples on my vag after I shave? I just shaved completely like a week ago and I just found 1 pimple. This usually happens when I shave it completely but how could I avoid getting it?