By Police1 Staff

BARNSTABLE – A Yarmouth K-9 officer was shot and killed while executing a multi-agency search warrant Thursday afternoon.

Multiple Massachusetts police departments expressed their condolences and extended their sympathies to the family of K-9 Officer Sean Gannon and the Yarmouth Police Department, which also changed it's Facebook profile photo.

With deep sorrow and heavy hearts the Yarmouth Police Department reports the loss of Officer Sean Gannon. Officer Sean Gannon was killed in the line of duty today. Posted by Yarmouth Police Dept. on Thursday, April 12, 2018

Procession held for officer shot, killed in Barnstable, Mass. A procession is being held for a Yarmouth Police Dept. officer who was shot and killed while serving a warrant in Barnstable, Massachusetts. https://goo.gl/TzDvue Posted by WMUR-TV on Thursday, April 12, 2018

Officer Gannon's K-9 partner was also shot during the incident and was taken to a veterinary hospital.

The men and women of Plainville PD join our brothers and sisters from Yarmouth PD in mourning the loss of Yarmouth... Posted by Plainville MA Police Department on Thursday, April 12, 2018

The suspect, who has a lengthy criminal record, was taken into custody following a long standoff with authorities.

The officer was taken to Cape Cod Hospital with life-threatening injuries, according to WCVB5.

Heartbroken to hear that Yarmouth Police Department Officer Sean Gannon has passed away after being shot this afternoon while serving a warrant.



Our condolences go out to @yarmouthpolice and Officer Gannon’s friends and family – both blood and blue. pic.twitter.com/XHuE6VDwqu — MIT Police (@MITPolice) April 13, 2018