My friend had this happen and she flicked her dd on the cheek, took her off and put her down. She never did it again.

My DS used to bite occasionally but only when he was teething or not really hungry. I used to take him off, light tap on his leg and put him down.

HTH