Petraeus: Benghazi was terrorist attack