I had a dog that did this when I was a kid. I hate to tell you this, but our vet said it was neurological. It never progressed into any more than fly biting.