NEW YORK (CBSNewYork/AP) — The City of New York on Friday agreed to pay $3.9 million to the family of Ramarley Graham, a black Bronx teenager shot to death by a white police officer in 2012.

The deal settled a federal lawsuit brought by the family of the 18-year-old Graham.

READ MORE: NYPD Officer Wilbert Mora Still In Critical Condition Following Deadly Shooting In Harlem

“This was a tragic case,” said New York City Law Department spokesman Nicholas Paolucci. “After evaluating all the facts, and consulting with key stakeholders such as the NYPD, it was determined that settling the matter was in the best interest of the city.”

Attorney Royce Russell said the family will comment Monday.

Graham died after he was shot once in the chest on Feb. 2, 2012, in a tiny bathroom in the three-family home where he lived with his grandmother and other relatives.

Police said narcotics officers spotted Graham on the street adjusting his waistband and thought he had a gun. When the officers approached, Graham took off running toward his home, authorities said.

Police said officers confronted Graham in the bathroom as he tried to flush marijuana down the toilet. Graham’s family said the teen’s grandmother and 6-year-old brother were inside the house at the time of the shooting.

Richard Haste, the officer who shot him, said he fired his weapon because he thought he was going to be shot. No weapons were found in the apartment.

Authorities previously said Graham had at least two prior arrests for marijuana and burglary.

READ MORE: Westchester Police Departments To Travel To Harlem In Tribute To Fallen NYPD Officer Jason Rivera

Haste was indicted on manslaughter charges in the summer of 2012, but charges were dismissed by a judge who said prosecutors improperly instructed grand jurors to imply they should disregard testimony from police officers that they radioed Haste in advance to warn him that they thought Graham had a pistol. A second grand jury declined to re-indict the officer.

Manhattan federal prosecutors are conducting a civil rights investigation.

The Graham shooting has been cited during demonstrations after grand juries in Missouri and New York declined to indict police officers in the deaths last year of 18-year-old Michael Brown in the St. Louis suburb of Ferguson and 43-year-old Eric Garner on a Staten Island sidewalk after he was put in a chokehold after he was stopped on suspicion of selling loose, untaxed cigarettes. The deaths fueled a national conversation about policing and race.

The Graham deal adds to a series of settlements in high-profile civil rights claims against police, jail officers and the city under Mayor Bill de Blasio.

His administration reached a $41 million settlement with the “Central Park Five,” men wrongly convicted in the vicious 1989 rape and beating of a Central Park jogger; a $10 million pact with a Jabbar Collins, a Brooklyn man who spent 15 years in prison after being wrongfully convicted of killing a rabbi; and a $2.75 million settlement with the family Ronald Spear, a Rikers Island inmate who died after what his lawyers described as a beating in which jail officers kicked him in the head.

Meanwhile, City Comptroller Scott Stringer’s office has pursued a strategy of settling major civil rights claims before lawsuits are filed. They include a $6.4 million agreement with David Ranta, whose murder conviction was overturned after he spent 23 years in prison and a $2.25 million settlement with the family of Jerome Murdough, a mentally ill former Marine who died after being left unattended for hours in a sweltering city jail cell.

Recently, Stringer said he would attempt to negotiate a settlement of a $75 million civil rights claim from Garner’s family.

MORE NEWS: Lashawn McNeil, Suspect In Deadly Harlem Police Shooting, Was On Probation, Had 5 Prior Arrests

(TM and Copyright 2015 CBS Radio Inc. and its relevant subsidiaries. CBS RADIO and EYE Logo TM and Copyright 2015 CBS Broadcasting Inc. Used under license. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. The Associated Press contributed to this report.)