Authorities said the teenagers who killed three men met online, posted their writings there and livestreamed the killings.