BARRE (AP) — An animal control officer says a bobcat that attacked two large dogs and lunged at two police officers in Massachusetts this week tested positive for rabies.

Barre Animal Control Officer Laura Pease told the Telegram & Gazette on Thursday that the bobcat had porcupine quills in its mouth and in her experience that generally means they have rabies.

READ MORE: Woman Killed After Commuter Rail Train Hits Car In Wilmington

Police Chief John Carbone and a sergeant responded to home in the central Massachusetts town on Tuesday after a family reported that a cat was attacking their much larger Bernese Mountain dogs.

When police arrived, the dogs were in the house and the bobcat was under the porch.

READ MORE: DA: Tyngsboro Police Tried To Stop Car Before Fatal Crash With Garbage Truck

Carbone fired several rounds when the cat ran and jumped at them, killing it.

The dogs were treated for puncture wounds.

MORE NEWS: Bryan Purdie Held Without Bail For Alleged Home Invasion, Kidnapping In Falmouth

(© Copyright 2017 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)