A black bear that was with a cub attacked a man as he opened his garage door in southeastern Idaho, wildlife officials said.

The attack happened Monday at the man’s home in the Henderson Canyon area near Victor, Idaho Fish and Game officials said on the department's website.

The injured man then called wildlife officials. Wildlife officers found the female bear and its cub nearby and killed them in the interest of public safety, officials said.

BEAR CAUGHT IN CALIFORNIA HOMEOWNER'S POOL TRYING TO 'BEAT THE HEAT': 'I DON'T BLAME HIM'

Adult black bear with cubs

A mother black bear is pictured playing with her cubs. A black bear and cub in Idaho were killed by wildlife officials after attacking a man in his garage. (W. Drew Senter, Longleaf Photography via Getty Images)

Both black bears and grizzly bears live in Idaho. But officials said attacks such as this one are uncommon.

CLICK HERE TO GET THE FOX NEWS APP

Victor is west of Grand Teton National Park in Wyoming.