The arrest occurred as new U.S. Defense Secretary Robert Gates met with Afghan President Hamid Karzai in the capital , Kabul .