NASHVILLE, Tenn. (AP) -- A man who at one time was training to be a Kentucky police officer has been charged with threatening President Donald Trump on social media.

Federal prosecutors say 37-year-old Andrew Long Ryan was indicted Wednesday on two counts of making threats against the president. The Greenbrier, Tennessee, resident was a trainee with the Bowling Green Police Department in 2005, but resigned.

Authorities say that in two social media posts on May 28 and May 29, Ryan posted "Death is coming" and "I will kill Donald Trump if you don't follow my leaders (sic) lead." Trump visited Nashville on May 29.

Prosecutors say law enforcement seized firearms from Ryan's home in February and expressed concern that his threatening behavior would lead to mass violence.

Andrew Brandon is the public defender assigned to represent Ryan. He said Thursday that Ryan plans to plead not guilty.

Copyright 2018 by The Associated Press. All rights reserved.