The suspect who opened fire on police in Brooklyn Tuesday night was a known Bloods gang member who was released on parole less than a week ago, law enforcement sources told The Post.

Sources identified the gunman as Nasheem Prioleau, also known as “Trigger,” who was pronounced dead just before 1 a.m. after the shootout at the Gowanus Houses.

Prioleau, 30, was paroled last Thursday on an attempted robbery conviction from 2014, according to state Department of Corrections records. He had served five years.

Shots rang out near the NYCHA housing complex just before 8 p.m., prompting two officers to respond to the area. That’s when Prioleau, 30, allegedly pointed a gun at them and began firing. The cops returned fire, striking Prioleau, who was rushed to Brookdale Hospital, where he died.

Neither of the cops, who were in plainclothes at the time, was injured.

A 9mm semi-automatic Taurus handgun was recovered at the scene.

Records show Prioleau also served time for attempted assault in 2011 and attempted weapons possession in 2008.

He had been arrested 13 times before — including on felony charges in 10 cases, sources said.

Sources added that he was a known member of the Bloods street gang.

Additional reporting by Larry Celona and Anabel Sosa