HEMPSTEAD, N.Y. (AP) — A suburban New York county has agreed to pay $650,000 to settle a lawsuit with a woman mistakenly shot by a police officer in 2010.

Newsday reports the agreement between Nassau County and Iyanna Davis came on the sixth day of her federal civil rights trial.

A county police officer shot the Hempstead woman in the chest after bursting into the wrong apartment while hunting for alleged drug dealers.

The officer claimed in court records that his assault rifle fired accidentally. An internal police investigation cleared him of any wrongdoing.

A county lawyer declined comment to Newsday. Davis’ lawyer says he’s pleased with the outcome.

The county legislature and finance authority must still approve the deal.