A man accused of conspiring in a foiled plot to bomb a Kansas military base on behalf of the Islamic State group has pleaded guilty to conspiracy.

Alexander E. Blair changed his plea to guilty Monday in a Topeka federal court.

Prosecutors say Blair helped 21-year-old John T. Booker in his plot to plant a 1,000-pound bomb at the Fort Riley military base to aid the Islamic State group. Blair admitted in court that he loaned Booker $100 to secure a storage space for the explosives and failed to inform law enforcement of the plot.

A court document states that Blair decided to change his plea because he believed that the government had collected enough evidence to convict him.

Booker has pleaded guilty and admitted to the plot.