"Did you intend to say that you dislike me because I'm gay?" is a pretty easy way to route out a troll.
Sincere apology or not, you get to know.
I've been moderating communities for 15 years, I've seen tricks from all manner of trolls and handling trolls with an even hand is still tricky; but being genuinely inquisitive is usually the easiest way to get around it. Even when tensions are high it makes people feel heard and understand their impact.