Complex sentence: The two attackers remained at the scene until police arrived and 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.