CIA Director David Petraeus resigned Friday from his post because of an extramarital affair.