Kazakh National Security Committee says extremist groups had hand in riots