SIERRA MADRE (CBSLA) — A black bear that scratched a man in his yard earlier this week in Sierra Madre was released back into the wild with her cub.

The man’s dog had gone after the adult bear Monday afternoon after it got onto its owner’s property in Sierra Madre. The mother bear had a cub nearby, so when the man ran in to save his dog and kicked the bear, it lashed back and scratched him, according to the California Department of Fish and Wildlife.

READ MORE: Davis' 28 Lead Kings To 2nd Straight Win Over Clippers

Both bears were tranquilized and captured immediately after the scuffle. DNA from the bear matched evidence taken from the man, but did not match DNA taken from another bear attack on April 24 that also happened in Sierra Madre.

READ MORE: Family Of 18-Year-Old Garret Hayward, Killed By Suspected DUI Driver, Hold Emotional Vigil

Wildlife officials determined that because the bear was protecting her cub, it was not acting abnormally aggressive and should be released back into the wild.

The injuries to the man and his dog were not serious and are both expected to be OK, authorities said.

MORE NEWS: In Wake Of Recent Crime Uptick, Beverly Hills Hires More Officers And Increases Patrols