CHARLESTON, WV (WOWK) — Agencies are offering their condolences after the death of Sgt. Cory Maynard.

Sgt. Maynard was shot and killed in the line of duty on Friday. The accused gunman, 29-year-old Timothy Kennedy, of Beech Creek, was arrested just before 11 p.m. on Friday.

Many agencies changed their photos to a West Virginia State Police Sergeant badge with a black line or band around it.

Here are some of the statements that were posted to social media:

Mason County Sheriff’s Office: “Prayers for this man’s family.”

Milton Police Department: “Our thoughts and prayers are with our brothers in Mingo County. We mourn the loss of Sergeant Cory Maynard of the West Virginia State Police and pray for his family. We are also praying for all the officers from every agency who are involved in the manhunt for the shooter. Keep each and every one safe.”

Mason Police Department: “Our thoughts and prayers go out for friends and family of Sgt Maynard.”

Oak Hill Fire Department: “We are deeply saddened by the senseless act of cowardice resulting in the loss of Sgt. Cory Maynard of the West Virginia State Police. Our prayers are with his family and the WVSP.”

Delbarton Volunteer Fire Department: “Our thoughts and prayers are with our brothers and sisters in blue this evening. We may wear a different uniform, but we are still family in arms. RIP Sgt. Maynard, you are the true definition of the word hero.”

St. Albans Fire Department: “Our department as a whole sends our sincere and heartfelt condolences to the family, and friends of WV State Police Sgt. Corey Maynard who died in the line of duty. There are people you have never met who defend good from evil every day, their sacrifices will never be in vain!”

City of Mount Hope Fire Department: “Our thoughts and prayers are with the WVSP and their families.”

West Virginia K-9 Search and Rescue, Inc.: “We had the pleasure to assist Sgt Cory Maynard on a search in Mingo County. He polite, professional and truly loved the community he served and protected. We extend our heartfelt condolences to Sgt. Maynard’s family, friends and the law enforcement community.”

Kanawha County Sheriff’s Office: “Our thoughts and prayers are with our West Virginia State Police Family. Our hearts break and grieve with them as we all mourn. West Virginia law enforcement has lost a pillar of the profession.”

Greenup County Sheriff’s Office: “We are saddened to hear of the senseless death of this West Virginia Trooper. Our thoughts and prayers to his family, friends and coworkers.”

Ripley Police Department: “Prayers for his family and our brothers and sisters in the WV State Police.”

Charleston Police Department: “Prayers for the family and for our brothers and sisters at the West Virginia State Police.”

Richwood Fire Department: “From everyone at the Richwood Fire Department We are asking you keep the West Virginia State Police (WVSP) and the Officers Family in your thoughts and Prayers for the loss Sgt. Cory Maynard EOW 06/02/23 We are alos asking you say a prayer for all members of Law Enforcement during this tragic time.”

Prestonsburg Police Department: “Another hero fallen before our temporary profile picture could change back. Sergeant Maynard was, by all accounts, a true hero and servant. Raised right next door in Pike County, known and loved by many. We hold the line from here.”