HUNTSVILLE, Ala. (AP) — A man killed by police filed a lawsuit several weeks ago claiming he was mentally ill and had been beaten in jail, court records show.

Haraesheo Milton Rice, 31, was fatally shot Wednesday night, said Madison County deputy coroner Tyler Berryhill. Police spokesman Lt. Stacy Bates said Rice had a gun and wouldn't drop it.

Court records show police arrested Rice multiple times through the years. Rice filed a federal lawsuit against Madison County last month saying he was mentally ill and complaining about what he called inadequate medical treatment and a beating by officers in the county jail in 2015.

The county has yet to respond to the complaint.

Police shot and killed Rice after responding to a report of another shooting that left a man dead. Berryhill identified that victim as 47-year-old Keith Ricks. Police say a third person was wounded and taken to a hospital.

___

Information from: WAFF-TV, http://www.waff.com/