A New York man was arrested early Sunday morning after unnecessarily spraying a fire extinguisher in the basement of a Hoboken bar, police said.

By John Heinis/Hudson County View

Patrick McGill, 23, of Yonkers, New York, was charged with creating a false public alarm, according to Police Det. Lt. Danilo Cabrera.

On Sunday at approximately 1:20 a.m., Officers Matthew Isler and Kyle Seper responded to a call at McSwiggan’s Pub, located at 110 1st St., that said an unknown male discharged a fire extinguisher in the basement area of the bar.

As officers were investigating the incident, the fire alarms for the building went off. This caused the evacuation of the bar and building and the Hoboken Fire Department responded and investigated the alarm, officials said.

The fire department determined that the alarm was set off due to the discharge of the fire extinguisher. Isler and Seper, through their on scene investigation, determined that McGill used the fire extinguisher and he was charged accordingly.

McGill’s charges were placed on a summons and he was released, authorities said.