Authorities lose control of Afghan district in Taliban attack