The messages were sent to Black men, women, and students, including middle schoolers, in several states prompting investigations by the FBI and other agencies.