If you're going to play it this way, you need to be shoving your stack in as soon as he bets the flop to get the maximum amount of fold equity.
However, your opponent seems pretty loose, and you only have 9 clean outs (the aces may be taken). And even if you have 12 outs, you're still a dog to KQ. If you were holding QcJc, JcTc, or even 5c4c this may be a different game. However, as played, I think you're making quite a few mistakes:
1) You're (semi)bluffing a loose opponent who is likely to call, and who is indicating a lot of strength with the re-raise & the pot sized bet.
2) You don't have enough clean outs to justify stacking off.
3) You could have simply called, and the button might've tossed his money in, giving you better pot odds
to draw with.
So yeah. Rough play with the drawing hand.