You were outside, away from your comfort zone, so you had a panic attack. It's alright, new smokers get them sometimes. Just gotta know where it's comfortable to smoke.
Dan