Hundreds of people have been arrested and more than a dozen police officers injured in violent demonstrations in Chile.