Complex sentence: Warning the guards to run, when they instead attacked he mercilessly defeated them, killing both.
Split into simpler sentences: Warning the guards to run. When they instead attacked, he mercilessly defeated them, killing both.