WASHINGTON—Wednesday's attack on a U.S. compound in Afghanistan devastated what has been a hub of counterterrorism and intelligence operations for the spy agency.

Seven Central Intelligence Agency officers and contractors were killed and six more wounded in the suicide bomb attack at Forward Operating Base Chapman, CIA Director Leon Panetta said Thursday, the second-largest single-day loss for the spy agency in its history.

Among...