Riot police reacted after some protesters among the crowd of at least 25,000 tried to break through barriers.