Petraeus in Afghanistan amidst violence