Jailing Poulton on Wednesday, Judge Robin Onions told him: "It was clearly not a gun, be it imitation or real. It was an entirely innocent object. It was the defendant's intention to deceive. Witnesses thought it was a firearm so he has to take the consequences."

Poulton, of Wellington, Shrops., also pleaded guilty to separate charges of causing criminal damage to a police car and laptop and aggravated vehicle taking.

He was also banned from driving for three years and made the subject of three restraining orders.

Rhiannon Jones, prosecuting, said shortly after 2pm on May 22, witnesses thought they had seen a man carrying a gun.

When armed police arrived minutes later and arrested Poulton they seized the weapon which they discovered was in fact a "sex aid", a court heard.

Speaking at the time of the incident, West Mercia Police said: "A member of the public reported to us that a man had been seen with a firearm in the Hall Gardens area of Hadley.

"Any reports of firearm incidents are taken seriously and we send resources according to the anticipated threat level."