Here's one: Instead of engaging them as a standup comic, willing to cross swords with a heckler (which likely encourages them), make up a three line response about how "this is a tech talk at a conference, please don't heckle, it just wrecks things for everyone." In other words, deflate the situation by being bland in your reply, and only bland.