WASHINGTON  In March 2003, two C.I.A. officials surprised Kyle D. Foggo, then the chief of the agency’s main European supply base, with an unusual request. They wanted his help building secret prisons to hold some of the world’s most threatening terrorists.

Mr. Foggo, nicknamed Dusty, was known inside the agency as a cigar-waving, bourbon-drinking operator, someone who could get a cargo plane flying anywhere in the world or quickly obtain weapons, food, money  whatever the C.I.A. needed. His unit in Frankfurt, Germany, was strained by the spy agency’s operations in Afghanistan and Iraq, but Mr. Foggo agreed to the assignment.

“It was too sensitive to be handled by headquarters,” he said in an interview. “I was proud to help my nation.”

With that, Mr. Foggo went on to oversee construction of three detention centers, each built to house about a half-dozen detainees, according to former intelligence officials and others briefed on the matter. One jail was a renovated building on a busy street in Bucharest, Romania, the officials disclosed. Another was a steel-beam structure at a remote site in Morocco that was apparently never used. The third, another remodeling project, was outside another former Eastern bloc city. They were designed to appear identical, so prisoners would be disoriented and not know where they were if they were shuttled back and forth. They were kept in isolated cells.