Petraeus warns of increasing attacks