Against and unknown, regular or passive player then folding to the shove looks correct. If he is an aggressive type I might consider calling it off. Aggressives are capable of shoving here with flush draws so you have to consider calling sometimes. He could easily shove Ac Kc .KcTc here for instance, I favour the former as he raised preflop over an utg opener. He could also have JJ QQ KK AA in the hole here. A decent player usually only 3bets an utg opener with a very tight range. JJ+ from the BB
As a result of that given range I'd say your flop raise looks a bit ambitious, a call might have been more appropriate.
Poker it very seldom just about the cards, the player type, what their normal habits are and what they are capable of has a huge part to play in guiding your decision making. Stats?