Killing in encounters is not a permanent solution to this problem. Foe instance, there hasn't been much difference in crime even after many gangsters were killed in encounters.
There has to be a system in place which is absolutely independent and in no way influenced and more powerful than our political system which can nail these terrorists. The system need to get to the root of the problem ... and eventually will finish it.