TAUNTON, Mass. (WPRI) — An investigation is underway after a man injured five officers following a police pursuit in Taunton Tuesday evening, 12 News has learned.

Taunton Police Chief Edward Walsh said it all started when officers pulled over a driver on County Street.

That driver was cooperative, however, Walsh said another man driving by, identified as 35-year-old Douglas Hagerty, pulled alongside them and began shouting at the officers.

Walsh said the officers asked Hagerty to leave and he sped off.

Hagerty was pulled over a short time later after being spotted driving erratically by another officer, according to Walsh.

Hagerty initially stopped but took off as the officer walked over to his vehicle. Walsh said he nearly hit the officer with his car in the process.

Officers followed Hagerty until he crashed his car into the side of his home on West Brittania Street. The officers chased Hagerty into his house, where Walsh said he pulled out a knife and slashed four of them.

(Story continues below video.)

Walsh, who lives nearby, said he responded to the home and was also slashed in the torso while trying to disarm Hagerty. He deployed his Taser in response, causing Hagerty to drop the knife.

Hagerty was brought to a nearby hospital with minor injuries.

Walsh said one of the officers was seriously wounded and rushed to a Boston hospital with slash wounds to his face and the back of his head.

The police chief and the other three officers were transported to a nearby hospital to be treated for various knife wounds, none of which appear to be life-threatening.

Hagerty has been charged with three counts of assault and battery with a dangerous weapon, two counts of malicious damage to a motor vehicle and one count each of assault and batter with a dangerous weapon causing serious bodily injury, armed assault with intent to murder, resisting arrest, reckless operation of a motor vehicle, and failure to stop for police.

His motive is unknown at this time, but Walsh said he is known to police.

He will be arraigned Wednesday morning.