Republican lawmakers have been cautioned to avoid holding town halls after video of heckling made the rounds on social media.