The United States said on Friday it banned from visiting the country a Tanzanian official who announced a crackdown on homosexuality in Dar es Salaam in 2018.