Complex sentence: For a number of hours, the gunmen hunted door-to-door for foreigners, dragging workers from under beds and behind cupboards, beating some who refused to leave, shooting others as they tried to run away.
Split into simpler sentences: For a number of hours, the gunmen hunted door-to-door for foreigners. They dragged people from their hiding places, beating some who did not cooperate, and shooting others as they tried to run away.