I got sick of his behavior and asked him to step outside with me.
Why did you ask him to step outside?
So I could tell him to knock it off.
If he was behaving in an irritating way it makes sense to get frustrated.  I would have done the same so I could let him know he was being a pest without embarrassing him. Hopefully he listened to you.
It's okay. He deserved the harassment and I'm glad I did it.
It's natural to be annoyed when someone is acting badly. Your approach sounds like a good one, as long as you talked to him calmly rather than just yelling.