This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

GREENPOINT, Brooklyn — A dispute that spiraled out of control between a former police officer and his landlord led to a shooting and standoff in Greenpoint Monday afternoon, police say.

Suspect being led away by police after allegedly shooting a landlord in Greenpoint Monday morning (PIX11 News)

The shooting happened around 2 p.m. on the sidewalk outside 185 Greenpoint Ave. near the intersection of McGuinness Boulevard.

According to the NYPD, 51-year-old Gene Barrett, who is a former police officer, shot the landlord, identified as Joe Stepinski, once in the head during an argument. He also took the his cellphone and keys from the jacket pocket, police say.

The suspect then barricaded himself inside the victim’s home for about an hour.

“I remember a police officer shouting, ‘he has a gun, get back get back,'” witness Jared Friedman told PIX11 News.

The suspect surrendered himself to police. He was later charged with attempted murder, robbery, assault, burglary and menacing, according to police.

The landlord was taken to Bellevue Hospital where he is in critical condition.

The investigation is ongoing.

Joe Stepinski (left) was shot by his tenant, former police officer Gene Barrett on March 7, 2017.