Petraeus’ resignation left President Obama, shown with Petraeus in June 2010, searching for a new CIA director.