Kondo conductance in an atomic nanocontact from first principles