Complex sentence: When it appeared the deal had gone through and that Vic murders someone, Kavanaugh's task force swooped in and handcuffed the team, only to discover that they had unwittingly destroyed a top secret sting operation.
Split into simpler sentences: When it appeared the deal had gone through and that Vic had committed murder, Kavanaugh's task force swooped in and handcuffed the team. However, instead of a crime scene, Kavanaugh discovered that he had unwittingly destroyed a top secret sting operation.