Masoud Pezeshkian expressed sympathy for protesters’ economic pain, but said the state must respond to “rioters.”