tough spot, I don't think jamming is that bad, but if BB has monster like he did then you're way behind. calling isn't bad either because BB doesn't have great pot odds to go, but if BB jams then you're forced to fold.
Shoving 30bb in that spot is crazy but with the 6bb shove you can't effectively 3b. I think I prefer just flatting there. The risk of BB calling behind is reduced by the size of UTG's shove.