EDDYVILLE, Ky. (AP) — Officials say the man accused of killing a Kentucky State Police trooper posted a video expressing regret before he was shot and killed by police.

State police Trooper Jay Thomas confirmed Tuesday that the 25-year-old suspect, Joseph Thomas Johnson-Shanks of Florissant, Missouri, posted a Snapchat video Monday morning. In the video, the suspect said he did something he didn’t mean to do and expressed regret.

Thomas said Johnson-Shanks fled from Trooper Joseph Cameron Ponder late Sunday in western Kentucky, starting a chain of events that led to the deaths of the lawman and the suspect. Thomas said the suspect shot the 31-year-old Ponder during a second stop.

Johnson-Shanks was found by police in a wooded area less than a mile from where the trooper had been gunned down.

RELATE CONTENT Suspect in fatal shooting of Ky. trooper shot, killed after manhunt
Funeral arrangements set for Ky. trooper killed on I-24