Imran is currently ushering in an 'Arab Spring' style movement in Pakistan. I use that phrase with all the positive and negative connotations that go with it. The army wants to maintain dictatorial-ish control and want to do to Imran what they've done to every Pakistani leader before this. (prison /exile/assassination) But he is too popular, now riding a fundamentalist wave that he himself can't control. So the army is having to resort to increasingly contrived methods to keep Imran under control.
I'll answer the question you presumably want to ask : "who are the baddies?". Sadly, that's a question that only the future can answer.