Authorities in Tanzania are warning people to stay at home on Tuesday, saying that protests planned to mark the country’s Independence Day are unlawful and constitute an attempted coup.