BOSTON (AP) – A 28-year-old Boston man has been charged with posting on an FBI website that he planned to kill President Obama.

Andrew O’Keefe was charged with a felony count of posting an online threat against the president. He made an initial appearance Monday in U.S. District Court in Boston and was ordered to be held in custody.

According to court documents, when law enforcement officers tried to interview O’Keefe outside his home regarding the May 13 posting, he refused to speak with officers. Authorities say more than 100 weapons were found at his home and in his vehicle, including swords, double-edged knives, hatchets and spears.

He faces a maximum sentence of five years in prison if convicted.

A preliminary hearing has been scheduled for July 29.

O’Keefe’s attorney, William Cintolo, didn’t immediately return a call seeking comment.

O’Keefe is also accused of threatening police with a 4-foot sword in November and faces state charges for that.

A prosecutor in the state case said O’Keefe had been diagnosed with bipolar disorder, The Sun Chronicle newspaper reported.