Complex sentence: When Mulder arrives home he finds Krycek there and is about to kill him when Scully shoots him to prevent him from doing so.
Split into simpler sentences: When Mulder arrives home he finds Krycek there and prepares to kill him. However, Scully shoots him to prevent him from doing so.