Kansas' top law enforcement official says the state mourns the "senseless" shooting death of a Kansas City police detective.

Attorney General Derek Schmidt said in a statement Tuesday that he extends his prayers to the family of 39-year-old Brad Lancaster's family and to Lancaster's former colleagues.

Police say Lancaster died at a hospital Monday about three hours after being shot while responding to a report of a suspicious person near a racetrack.

A suspect, 28-year-old Curtis Ayers, was arrested after being shot by police during an attempted carjacking after he crashed another car. He was in stable condition Tuesday at a hospital.