Complex sentence: Jack Bauer attempted to capture Beresch by shooting his gun out of his hand when he tried to shoot himself, but Beresch then detonated an explosive vest on a dead terrorist, killing himself.
Split into simpler sentences: Jack Bauer attempted to capture Beresch by shooting his gun out of his hand when he tried to shoot himself. But Beresch detonated an explosive vest on a dead terrorist killing himself.