A man arrested following an incident in the Lincolnshire village of New York admitted a firearms charge when he appeared before Lincoln Crown Court.
Robert Farrington, 65, who previously lived in New York, pleaded guilty to possession of a firearm with intent to cause fear of violence as a result of the incident on September 9.
Officers were called to Haven Bank in New York, Lincolnshire, just before 6pm. Nearby residents were told to stay in their properties while police dealt with the incident, which was resolved just after 8pm the same evening. No people or officers were injured.
Farrington, who is currently living at an address in Temple Hirst, Selby, was granted bail on condition that he does not enter Lincolnshire except by prior appointment.
Recorder Simon King adjourned for the preparation of a probation report and Farrington will be sentenced on November 7.