Casper police arrested a man Wednesday night after he allegedly threatened suicide, leading police to discover methamphetamine and other drugs inside an apartment where a child lived.

Ricardo Trevino, 38, was booked into jail on recommended charges of child endangerment with methamphetamine, meth possession and possession of dextroamphetamine. He will likely make his initial appearance in Natrona County Circuit Court at 2 p.m. Thursday.

According to an affidavit filed in the case, police officers responded to an apartment at 263 Honeysuckle shortly before 9:30 p.m. Wednesday for a report of a suicidal person. The person who called police had been watching Trevino on Facebook Live and said Trevino had a belt around his neck as well as a syringe full of bleach, which he was going to inject into his arm.

When police arrived, Trevino cracked the front door open and was slow to show officers his hands. When an officer explained the reason for the contact, Trevino said he was fine and before trying to slam the door shut.

Trevino ran up the stairs and into his room as two officers followed. The officers stopped at the top of the stairs to get Trevino's girlfriend and her son out of the apartment. Police then reportedly heard what they believed to be the sound of a firearm being loaded inside Trevino's room.

An officer spoke to Trevino through the door and eventually convinced him to let police inside. Trevino was quickly handcuffed, and no weapons were found on his person.

However, officers allegedly found methamphetamine and drug paraphernalia, as well as dextroamphetamine pills. The methamphetamine and paraphernalia was largely found on the floor and would have been within the child's reach, police say.

The Wyoming Department of Family Services responded to the scene. The child's mother passed a drug test, so the child was not taken into protective custody.

Trevino was taken to jail.