ALLEN, Ky. —  A third police officer has died after a shootout in a small Eastern Kentucky town on Thursday evening.

The fatal shootings of two officers were announced the morning after the incident, but another officer who had been in critical condition succumbed to his injuries Friday night, Kentucky State Trooper Matt Gayheart confirmed. 

Jacob Chaffins, a patrolman for  Prestonsburg Police, died Friday, according to a social media post by the department. He was the canine handler for K9 officer Drago, who also was killed during the shootout.

Floyd County Sheriff’s Deputy William Petry, a former state trooper, and Prestonsburg Police Capt. Ralph Frasure, a 39-year law enforcement veteran, also died. 

“It’s a small community and not only did we lose a couple of great officers, but we also lost pillars of the community,” Gayheart said. “It’s going to take the community rallying around to get through it.” 

WHAT IS A MASS SHOOTING?There’s no consensus definition, but here’s what you should know

How it happened 

Four officers were attempting to serve a warrant to 49-year-old Lance Storz at his home on Main Street when he opened fire with a rifle, according to his arrest citation.

Just before 7 p.m., state [olice received a call to assist, Gayheart said. In addition to troopers, more officers from the Prestonsburg department and agents from the Bureau of Alcohol, Tobacco, Firearms and Explosives’ London and Ashland Offices responded to the scene in Allen, population 166.

About three hours later, Lance Storz, 49, was taken into custody, Gayheart said. He was booked into the Pike County Detention Center about 4:30 a.m. and charged with two counts of murdering a police officer, five counts of attempted murder of a police officer, one count of attempted murder and one count of first-degree assault of a service animal, court records show.

Besides the three officers and dog who were fatally wounded, four other officers were injured along with an emergency management director.