Kazakhstan detains former chief of National Security Committee