The melee outside the country’s seat of power unfolded while more than 33,000 other protesters expressed outrage over a corruption scandal involving flood-control projects.