Sometimes after getting a shot in the area near the tooth, there will be pain for a couple of days after. My gum swelled and was sore for atleast 4 days after my fillings were done. It does go away.
My guess is myositis resulting from myotoxity of anesthetic agent.