A five-year-old K-9 officer with the Bexar County Sheriff’s Office was killed in the line of duty Friday night in San Antonio, Texas.

38-year-old Matthew Mireles led cops on a dangerous high-speed chase after a routine traffic stop by Karnes City police.

After evading police for more than 30 minutes, he eventually ditched his vehicle and ran off on foot.

Mirales was armed and had opened fire on police as he exited his vehicle, and continued to point his gun toward authorities, passersby and a helicopter that was flying above.

The commander decided to deploy their K-9, Chucky, “to address a deadly immediate threat to the public and officers.”

K-9 Chucky caught up to Mireles and bit him before Mireles shot him twice, killing him on the scene.

Mireles, who is well-known to authorities for the time he’s spent behind bars over the years, was then shot by the police and arrested on charges of attempted capital murder, deadly conduct, evading arrest and more.

Unfortunately, Chucky’s handler did not have an opportunity to put on Chucky’s protective vest before he was deployed, “as doing so would’ve continued to place the public in imminent danger,” the Sheriff’s Office said.

Because of overheating and other health concerns, K-9s are unable to wear their vests at all times.

A Message from Sheriff Salazar Thank you, Bexar County. It has been a very emotional and busy morning, but the…

Posted by Bexar County Sheriff's Office on Saturday, January 26, 2019

“We are deeply saddened for our fallen K9 Deputy Chucky, and for his handler, his human family, and the rest of the K-9 unit,” the Sheriff’s Office said on Facebook.

Chucky’s funeral arrangements are currently being planned, and the Sheriff’s office said he will get full honors.

Chucky died trying to save the lives of others, and for that he will always be remembered.