Petraeus believed terrorists behind Libya attack