Clashes as Ecuador president declares state of emergency