A man who claimed that he previously viewed child pornography and the gang MS-13 had been using sound-wave technology against him was arrested Friday after allegedly using a knife in a halfhearted robbery attempt at a Casper liquor store.

Juan Carlos Albrecht-Rivera, 36, was booked into jail on a recommended charge of aggravated robbery. He is expected to make his initial appearance in Natrona County Circuit Court at 2 p.m. Monday.

According to an affidavit of probable cause, a Casper police officer responded to C85 Liquor at roughly 1:15 p.m. Friday for a report of a robbery. The general manager said that a man, later identified as Albrecht-Rivera, had pulled a knife on a cashier and "demanded everything."

However, Albrecht-Rivera then handed over the knife, apologized and said he would wait outside for police.

Albrecht-Rivera was smoking a cigarette when the officer approached him. He explained that he had been in Casper for about two weeks, having come into town as part of a commercial trucking team and since left the job.

Albrecht-Rivera told the officer that some 10 years prior, his roommates caught him viewing child pornography online. In order to get back at him, MS-13 had put a "hit out on him." The officer then asked how Albrecht-Rivera had learned about the plan to kill him.

"This is going to sound crazy," Albrecht-Rivera said, claiming that MS-13 was using "sound wave technology" against him. He said it had been going on for some time, but no one took his word for it.

Albrecht-Rivera added that MS-13 was following his movements and invading his thoughts.

Since he couldn't kill himself as he had intended, Albrecht-Rivera explained, he figured prison would be a safer option than remaining free.

When asked about his history of mental illness, Albrecht-Rivera said he had previously been diagnosed with an unspecified condition. The prescribed medication helped, but he had run out roughly a week prior.

He was arrested, and police found a suicide note on his person.