Hello Ammje,
I don't see the need to jam it right there, you may have been feeling the pressure of being down to 10.7 BB. When you are at that short of a stack, you tend to not play as you normally would. But had you seen the flop when the Q came, you might have been able to get away from the hand. I think a raise is in order. I may be wrong and I may contradict my own advice when we are at the tables together, but it is all easier with hindsight.
Funny thing is, that while I was writing this, I came up to a very similar situation. I just had AJo and did a small raise. Seemed like a dry flop and got jammed by someone, I folded but someone else didn't. I got away from losing to trips. So your post probably saved me some chips.
Cheers.
Brian