A pet dog is being hailed “little hero” after it died while trying to save its owner from kidnappers.

In a Facebook post Saturday, Bach and Friends, an animal rescue page, wrote the chihuahua defended its owner from kidnappers by continuously barking at them. The canine was severely injured after kidnappers kicked it several times and eventually succumbed to injuries.

“They tried to kidnap her, and her little chihuahua defended her by barking with all his strength, although his little body didn't withstand the kicks that the kidnapper gave him. His bravery and heroism managed to save his owner. Rest in peace little hero!! ” the post read.

The exact date and location of the incident were not known.

The post was accompanied by a photo of the owner with the dog. The canine, believed to be in its last moments, is seen laying on a mat on its owner’s lap. The post has since gone viral with over 25,000 shares with several people lauding the canine for its braveness.

“love and peace. Thank you for your heroic deed. So very sad that those cruel people did this to you,” a user wrote. “You are such a hero, loyal and showed how much you love your owner! Rest In Peace! ” wrote another.

Another user wrote, “I hope he rests well, he's such a hero and his bravery will always be remembered.”

The incident comes days after a pet dog was shot in the face by thugs while trying to protect its family. The dog’s owner said his sister’s boyfriend drove up to the gate when the criminals approached him with guns. The dog immediately leaped and attacked the three thugs.

"The dog was inside the yard and went for one of the men. I was watching a movie inside and heard the gunshot. I heard my girlfriend and sister screaming and thought they had shot her boyfriend because I saw blood around the house. When we went outside, I saw my dog was bleeding. He was still standing and running around," the dog’s owner said. The dog was rushed to an animal hospital for treatment.

In this representational image, a chihuahua puppy poses at Pucchin Dog's shop in Akita prefecture, Japan, July 11, 2007. Getty Images/ Koichi Kamoshida