My first thought like others was pain related. I did a quick search which resulted in the following article with a variety of possibilities.
Medical and Health Causes of Dog Aggression
I am sure there are more.
I hope the vet is able to get to the root of the problem.
Good luck.