I don't think your play was bad at all. You had a good draw and paid the right price to hit it.
You had a read that this guy was a donkey and you went with it...his preflop raise was weak - no way you can see kings there...just turned out you caught on the one hand that he actually had cards.