They would be murdered if they tried to take on the crowd. They needed to wait for reinforcements to arrive, and meanwhile do their best to keep the crowd from going fully insane.
They managed the situation with very few people getting hurt, and protected the politicians. Which is pretty good considering how few police there were.
The main issue is why were there so few police there to begin with, so this could’ve been prevented in the first place.