We need to identify whether if the problem is at a prosecution level or something within the judicial level where the judges etc are either afraid to charge these terrorists or are abetting them.
Buddy we don't need to "identify" anything. We already know. Everyone in the country knows. Let me break it down for you;
1. Judges are corrupt to the core
2. Few honest ones are scared/threatened INSIDE the court room. Plenty of examples.
3. Remaining very very few ones who actually want to stand up for the law are left toothless when our competent police presents are a case so weak that the judge has to let the bad guys go free.
Short term solution: Extend military court system. This is not the West where institutions are developed. Let the military courts clean up this mess and then we can talk about judicial reforms. We can't afford to wait for judicial reforms while these killers get a free pass every time they get arrested.