A 32-year-old man was left with severe injuries after a brown bear mauled him and was accidentally shot in the ensuing struggle after he and his hunting partner were attacked in Alaska.

The pair were hunting along the Resurrection Pass Trail, a nearly 40-mile stretch between Hope and Cooper Landing, Alaska, when they encountered and were attacked by a large brown bear at approximately 3 p.m. Aug. 17, the Alaska Department of Public Safety announced in a press release.

The bear mauled the man and seriously injured him, the troopers said.

COLORADO RANCHERS CALL ON OFFICIALS TO LETHALLY REMOVE WOLVES

Brown bear

A brown bear fishing for salmon along the shore of a national park preserve in Alaska. (Wolfgang Kaehler/LightRocket via Getty Images)

While they were fending off the bear, both hunters fired their guns.

The 32-year-old was shot in the leg, the department said. 

Tim DeSpain, an Alaska State Troopers spokesperson, told the Associated Press that it is not clear "who fired the shot that struck him."

Hunter looks through binoculars

A hunter looks through binoculars in Alaska during a trip.  (Joe Raedle/Getty Images)

Authorities said that the brown bear was killed by the hunters during the exchange.

AMERICAN HUNTERS WARNED AS EAGLE POPULATION FACES SERIOUS THREAT

The hunter who was shot was transported to an Anchorage hospital in a helicopter for treatment for his injuries, troopers said. The other hunter was transported by an Alaska Rescue Coordination Center rescue team. 

Water, trees in Alaska

The Alaskan wilderness. (Education Images/Universal Images Group via Getty Images)

Authorities are continuing to investigate the incident, troopers said.

CLICK HERE TO GET THE FOX NEWS APP

Fox News Digital has reached out to the Alaska Department Of Public Safety for comment.