In several cities, federal agents deployed by the president have detained, chased, shoved, sprayed or shot with projectiles people protesting peacefully.