Police detained a man who barricaded himself inside an apartment building with a gun in the Flatiron District Wednesday afternoon, after the man reportedly threatened workers on scaffolding outside his window, the NYPD said.

Police at the scene said the situation began around 2 p.m., when the NYPD responded to calls of a man brandishing the weapon inside his apartment near 22nd Street and Broadway.

The man, reportedly in his 70s, then barricaded himself inside. After about an hour and a half of negotiating, the unidentified man surrendered to cops around 3:30 p.m. without incident and was taken into custody, police said. Cops on the scene wouldn't confirm whether he had a gun, and said they were waiting on a search warrant.

It was unclear whether the man, who was not immediately identified, would be charged.

FBI, police seize 23 illegal guns, drugs from home ... LI's highest-paid CEOs ... Out East: Jamesport Farm Brewery Credit: Newsday

Impacts to marine life from power cable? ... FBI, police seize 23 illegal guns, drugs from home ... LI schools drop summer reading ... Flag football on rise

FBI, police seize 23 illegal guns, drugs from home ... LI's highest-paid CEOs ... Out East: Jamesport Farm Brewery Credit: Newsday

Impacts to marine life from power cable? ... FBI, police seize 23 illegal guns, drugs from home ... LI schools drop summer reading ... Flag football on rise

SUBSCRIBE

Unlimited Digital AccessOnly 25¢for 6 months

ACT NOWSALE ENDS SOON | CANCEL ANYTIME