I would like to ask you if you had any such episode in the past?
and if this is your first episode there can be many causes of such hip pain
it can be muscular or neural(due to compression of a nerve
it can also be ischeamic( disruption in blood supply)
to find out the exact cause you need to see your doctor. but I can suggest you that if you have a sedentary life style it can also be a cause because of muscle fatigue
for any further queries you are most welcome.