The rapid collapse of a U.S. diplomatic compound in Libya exposed the vulnerabilities of State Department facilities overseas. But the CIA’s ability to fend off a second attack that same night provided a glimpse of a key element in the agency’s defensive arsenal: a secret security force created after the Sept.