A hiker in Alaska’s Denali National Park photographed a grizzly bear for at least eight minutes before the bear mauled and killed him in the first fatal attack in the park’s history, officials said Saturday.

Investigators have recovered the camera and looked at the photographs, which show the bear grazing and not acting aggressively before the attack, Denali Park Superintendent Paul Anderson said.

The hiker was backpacking alone along the Toklat River on Friday afternoon when he came within 50 yards of the bear, far closer than the quarter-mile of separation required by park rules, officials said.

“They show the bear grazing in the willows, not acting aggressive in any form or manner during that period of time,” Anderson said.