Brewer made unannounced visit to Afghanistan