(CNN) The man arrested for trying to disarm a police officer inside a Donald Trump rally in Las Vegas Saturday told authorities he intended to use the gun "to kill Trump," according to a new criminal complaint.

Police arrested the 19-year-old after he attempted to pull a police officer's gun from its holster inside a Las Vegas theater where Trump, the presumptive Republican nominee, was holding a campaign rally.

Police said Michael Sandford, a Briton, struck up a conversation with a Las Vegas Metropolitan Police officer under the pretense that he was seeking to get an autograph. During the conversation, police said Sandford tried to pull the officer's service weapon from its holster.

A court sketch of Michael Sandford.

Other officers also assigned to provide security at the event were quickly able to detain Sandford and authorities said there was no further disruption to the event.

Sandford told police that he drove to Las Vegas from California "to kill Trump," according to the complaint, after hearing a few days earlier in the news that he was expected there.

He was in the country illegally, his visa having expired. He had been living out of his car in California for a month, according to CNN affiliate KSNV.

On June 17, he practiced shooting a gun for the first time at a gun range in Las Vegas.

"(Sandford) further stated that if he were on the street tomorrow, he would try this again," reads the complaint, obtained by CNN. "Sandford claimed he had been planning to kill Trump for about a year but decided to act on this occasion because he finally felt confident about trying it."

He made an appearance before a federal judge Monday, and has been charged with committing a violent act in a restricted area, according to KSNV. A message left with his attorney was not immediately returned.

Sandford also told authorities that had he not tried to assassinate Trump at the Las Vegas event, he had planned to go to his next rally, in Phoenix, Arizona, and try again there.

Trump is under U.S. Secret Service protection but local law enforcement often supplements them at campaign events.

The Secret Service says it has charged Sandford with violating two federal laws following the incident, including assault, and he could face up to a decade in prison if convicted. Because he was considered a flight risk, a judge on Monday ordered him to stay in custody until his next court appearance, which is a preliminary hearing scheduled for July 5.

Many of Trump's rallies throughout the campaign have been contentious, with protests both inside and outside the events. Secret Service agents had to run to Trump's side during a campaign rally earlier this year in Ohio to protect him against a man attempting to rush the stage during his remarks.

The Secret Service said other charges are still pending and the incident remains under investigation.