NEW YORK — New York police said Thursday that officers did not make a mistake when they arrested a handcuffed man on charges of shoplifting.

“Officers made a decision that this man, this individual, had a firearm on his person, which would be considered a firearm in New York law,” NYPD Chief of Detectives Andrew Martino told reporters.

The man, 28-year-old Matthew A. Stagg, was arrested Thursday after a bystander called police about a suspicious package, according to police.

Police found an assault rifle and other items at the man’s home.

Stagg is charged with second-degree assault on a police officer, which carries a maximum penalty of two years in prison and a $10,000 fine.

The man was not injured, police said.

According to police, the man was handcuffed, placed in a squad car and led away in handcuffs to a police precinct.

Police did not say when the officers arrested Stagg.

“It’s not uncommon for the NYPD to have these kinds of cases where people are arrested, they’ve got a weapon on them and they are handcuffed,” Martino said.

Stag was released from the hospital Wednesday.

He is due back in court later this month.