Elon Musk’s X is closing its operations in Brazil while keeping the service available in the country, according to posts Saturday from the social-media platform.