Kazakh spy chief offers to quit