The United States government has said the ban on Twitter in Nigeria sends a poor message to investors and businesses.