Kazakhstan has a problem with Islamic extremists and the government is very much worried about it and spends a lot of money fighting it. They put cameras in every mosque, for example, and work their people into every religious group of any significance.
There's not much info on it in English, but here you go:
It’s certainly on the governments radar, and they do have an interest in preventing it. Kazakhstan banned hijab in schools and engages in anti terrorism like you mentioned. But overall, the country has a large secular population (due to the Soviet Union) and the country practices a moderate form of Islam called Sufism. I would attribute this to their nomadic culture, which meant the Quran was more of an oral tradition for Kazakhs in the past. The difference between Kazakhstan and Tajikstan is that you can actually find daesh cells in the pamir valley of Tajikistan, while that’s not really a thing in Kazakhstan. Extremism in KZ has manifested as a few isolated attacks and a small amount of individuals who chose to travel to fight in the Syrian war. I spent 9 months in KZ last year and - visited mosques, talked to many locals in various cities and feel comfortable saying that Islamic extremism is rare there.