Police identify the man shot by cops after he allegedly robbed a Brooklyn bodega with what looked like a gun.

Officers responded to Starr Street near Irving Avenue in Bushwick at about 12:45 Sunday morning, after they say 18-year-old Sergio Reyes robbed Garden Deli and Grill.

Cops say they approached Reyes as he was walking down the street.

He then allegedly pointed an "imitation firearm" at them, prompting the cops to shoot him multiple times.

Reyes died at a nearby hospital.

A deli worker tells us he threatened to kill him during the hold up.

"He tells me bag it up again or I'm going to kill you," the clerk said. "After I bag it up I tell him take whatever you like. Money, whatever you like. Please don't kill me."

"It's not even worth it like pull a gun on someone try to kill them for a couple of beers. It's not even worth it."

Police say Reyes's gun was designed to look like a semi-automatic weapon, but they're unsure at this point what it was capable of doing.

This is the city's third police-involved shooting in the past week.