Tanzania bans foreigners