Complex sentence: The residency was divided into lines (sections) each line was responsible for its assigned task of gathering intelligence, and one of the line's (section) was responsible for counterintelligence.
Split into simpler sentences: The residency was divided into lines (sections). For instance, one of the line's was responsible for counterintelligence.