A Leavenworth man has pleaded no contest to attempted robbery in connection to an incident in which firearms were taken from a residence, according to a prosecution official.

A Leavenworth man has pleaded no contest to attempted robbery in connection to an incident in which firearms were taken from a residence, according to a prosecution official.

Dakota Leyon Castor, 23, pleaded no contest Tuesday in Leavenworth County District Court to one count of attempted aggravated robbery.

The charge stemmed from a Dec. 18, 2016, incident at a residence on 215th Street in rural Leavenworth.

Castor reportedly had arranged to meet the victim at the victim’s home. The victim had set up the meeting so Castor could view firearms the victim was trying to sell, according to County Attorney Todd Thompson.

Castor showed up at the residence with another man who was unknown to the victim. The unidentified man pointed a handgun at the victim, ordering him on the ground. The victim was struck with what later was determined to be a Taser flashlight, according to Thompson.

Castor and the other suspect reportedly left the residence with five firearms belonging to the victim.

Castor initially had been charged with aggravated robbery and aggravated battery. He pleaded no contest to the attempted aggravated robbery charge as part of a plea agreement, according to court documents.

The prosecution and defense have agreed to recommend a 100-month sentence.

Sentencing is scheduled for Sept. 28.