According to court documents, the suspect communicated with an undercover detective online.