Kazakh president says state of emergency 'necessary measure'