Complex sentence: The two attackers, who remained at the scene until police arrived, told passers-by that they had killed a soldier to avenge the killing of Muslims by the British military.
Split into simpler sentences: The two attackers remained at the scene until police arrived. They told passers-by that they had killed a soldier to avenge the killing of Muslims by the British military.