A Harrisburg man is charged with having bomb-making materials and an illegal gun, police say.

Shihi Qadir Thomas

Shihi Qadir Thomas, 22, of MW Smith Homes, was charged June 9 after police said they found a loaded .22-caliber rifle, body armor and a duffle bag containing various caliber ammunition at his home.

Thomas admitted to "trying to create some type of bomb," police said. The Bureau of Alcohol, Tobacco and Firearms was contacted and took possession of the bomb-making materials. No bomb was actually constructed, police said.

Police were at his home to serve a warrant for a probation violation.

Thomas was charged with person not to possess a firearm and possession of explosive/incendiary material. He is in Dauphin County prison in lieu of $100,000 bail, and his preliminary hearing is scheduled for July 6.

UPDATE: Harrisburg police have issued a corrected photo of Shihi Thomas.