Prolly trochanteric bursitis
Rest and anti inflammatories for a week or so, if it's still bothering you - off to the sports medicine doc.
First line of therapy is usually a cortisone injection.
Stretch the crap out of your hip flexors before squatting. I had the same issue for a while, managed to stretch myself out if it though