that was absolutely the right move. at worst you were a 52% favorite (depending on if he was suited and you had 1 of his suits) and you got the sb
out of the hand. and a less than shove 3 bet wouldn't have made sense since you'd be committed.
sure, you could have flatted here too. that wouldn't have been a bad move either. you could have saw the flop and decided to fold to any overs (especially an ace)
but you got your money in good and you got out flopped. you made the right decision
just last night i was in a $450 multi flight, and i got eliminated opening with QQ (i had 90k, blinds 600/1200/1200, it was 100k starting stack, deepest stack at the table was about 350k). i got 3 bet by a guy that barely covered me and of course i snapped. he had AK and flopped an ace. Yes QQ is better than 99, but would you ever wonder if my move was a bad shove? no. because when you shove at that situation you are hoping you're up against a hand like Ax, and not a better over pair.
thanks for sharing!