Frank Graham (C), father of Ramarley Gragam, who was shot and killed by police officers in New York in 2012, speaks outside the New York Police Department Headquarters after marching in the National March Against Police Violence, on December 13, 2014 in New York City. The march coincided with a march in Washington D.C. and comes on the heels of two grand jury decisions not to indict white police officers in the deaths of two unarmed black men. (Photo by Andrew Burton/Getty Images)

New York City agreed Friday to pay $3.9 million to the family of a Bronx teenager shot to death by a white police officer in 2012. The deal settled a federal lawsuit brought by the family of 18-year-old Ramarley Graham (pictured below).

“This was a tragic case,” said New York 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 in February 2012 in a tiny bathroom in the three-family home where he lived with his grandmother and other relatives. 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.

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.

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 when 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 first-term Mayor Bill de Blasio.

On Friday, word emerged of a $5 million settlement with the family of a man killed in 1986 after being mistaken for a mobster with the same name; prosecutors said the bad information came from two former police detectives later convicted of moonlighting as hit men for the mob.

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 a man whose murder conviction was overturned after he spent 23 years in prison and a $2.25 million settlement with the family of 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.