JOHNSTOWN, Pa. — A National Guardsman who threatened to kill Vice President Mike Pence has been sentenced to six months in prison.

A federal judge on Friday also ordered 23-year-old William Dunbar to serve an additional six months of home detention and get mental health treatment.

He pleaded guilty in December to making the threat before Pence’s visit to Pennsylvania for the annual observance of the Flight 93 crash on Sept. 11.

Authorities say the man from Berlin, Pennsylvania, was on duty at the Army National Guard Training Center on Sept. 8 when he said, “If someone pays me enough money, I will kill the vice president.”

Witnesses said they contacted commanding officers after Dunbar make the threat twice.

Authorities say Dunbar initially denied making the statement.

U.S. Secret Service conducted the investigation that led to Dunbar’s prosecution, reported The Tribune-Democrat of Johnstown, Pennsylvania.

Pence’s appearance went ahead as scheduled.

Army Times News Editor Kathleen Curthoys contributed to this report.