A California boy who was pulled from his bike by an attacking dog Tuesday was saved by his family's cat, which rushed in and attacked the dog, a video posted on YouTube showed on Wednesday.

The video shows the young boy playing on a driveway in Bakersfield when a dog lunges at his leg, grabs hold of it with his jaws and drags him off the bike.

A dark cat swiftly hurls itself onto the dog and chases it down the driveway and away from the child before a woman runs to help the boy. Local media reported the video was from multiple security cameras and shows graphic pictures of the bite wounds sustained by the boy.

"Thankfully, it wasn't worse," his father, Roger Triantafilo, wrote in posting the video. "My son is fine."

Bakersfield police said the attacking dog, identified as an 8-month-old Labrador-Chow mix, had been surrendered by its owner's family after the attack and was in quarantine and would ultimately be euthanized.

Police spokesman Sgt. Joseph Grubbs said the dog's owners, who live in the same neighborhood as the boy, said the dog did not like children or bicycles. He did not identify the owner by name.