COEUR D'ALENE, Idaho (AP) — A man who had been wanted in Idaho for shooting a pastor when he was arrested for throwing items over the White House fence has accepted a plea deal that could keep his prison sentence under 25 years.

Former Marine Kyle A. Odom, 31, pleaded guilty on Monday to felony aggravated battery with a felony firearm enhancement, The Coeur d'Alene Press reported (http://bit.ly/2tngqdc ).

Odom's lawyer, Christopher Schwartz, and deputy prosecutor Rebecca Perez will each get a chance to argue for sentencing recommendations at Odom's Sept. 26 sentencing. It's up to Judge Lansing L. Haynes to accept or deny the plea agreement for less than 25 years. The penalty for aggravated battery with a weapon enhancement is up to 30 years in prison and a fine of $50,000.

Odom is accused of shooting Tim Remington in March 2016 one day after Remington delivered the invocation at a Ted Cruz campaign rally in Idaho.

Remington survived being shot six times. One of the bullets became lodged near his brain, while others hit him in the back, shoulder and pelvis.

Odom was arrested in Washington, D.C., by security officers after throwing documents and computer flash drives over a fence onto the White House lawn. He was extradited and has been in the Kootenai County jail on a $500,000 bond.

Odom claimed he was being tormented by "hypersexual" mind-controlling aliens around the time of his crimes, according to a manifesto he sent to Idaho television stations.

Odom told the court he has been taking prescription medications to deal with mental issues, but could think clearly enough to enter a guilty plea to the felonies.

He was originally charged with first-degree attempted murder, but that charge was later amended.

___

Information from: Coeur d'Alene Press, http://www.cdapress.com