He is now being held in a secure location outside the country, a Pentagon spokesman confirmed.
US Ambassador Chris Stevens and three others were killed in the attack.
“There were no civilian casualties related to this operation, and all US personnel involved in the operation have safely departed Libya,” Pentagon press secretary Rear Adm John Kirby wrote in a statement.