First off...
- You hit TPTK.
- You did not bet it that hard.
- Opponent hit his draw with justifiable odds, didn't suck out....

You can't do anything about the cards or your opp hitting his draw, but do keep in mind that your flop raise was actually relatively small. Very roughly:

- Pot is about $6.
- Opp bets $5 (--> pot is now $11). This is a very strong bet, esp into the preflop raiser.
- You raise to $12 (pot is now $23). This is barely above a minraise. The opponent now needs to call off $7 to win $30... or he has to call off 23% of the pot when he has somewhere in the neighborhood of 20% chance to "win" the pot on the turn.

Marginal call and he's technically making a mistake, but it's close enough to justify a call and it isn't a mistake if he accounts for implied odds and thinks you'll pay his draw off (which you did).

What can you do? Well you now know this guy can bet draws aggressively and adjust your play accordingly. As for the river? I have a hard time not calling that bet unless I have a pretty strong read on the guy.

EDIT: you also know this guy can/will play suited trash into a preflop raise. You generally like this type of player on your table...