Kazakh protesters torch public offices; emergency declared, cabinet resigns