The incident followed a dispute between the mayor and a self-proclaimed cow activist over social media posts.