Well, if it's any consolation, I think you played it well... just down to bad luck on the river. He was a bit loose in calling preflop from the small with K-10 off, but after he hit top pair on the flop, I doubt it would have gone down any other way regardless of how you played it.
So hopefully next time he won't get lucky, eh?