Taliban militants take control of Afghan district