Chile president declares state of emergency after violent protests