Hagel meets Afghan President Karzai after security threat, friction