Kazakhstan declares state of emergency in places where protests turned violent