CODY, Wyo. (AP) — Wyoming wildlife officers are trying to trap a grizzly bear that was spotted in a residential neighborhood of Cody.

The Wyoming Game and Fish Department says the bear was seen eating apples in a yard on Saturday. Cody police described it as a large male.

Officials asked residents to stay away from the area while they try to capture the animal.

Cody is 50 miles (80 kilometers) east of Yellowstone National Park. About 700 grizzly bears live in and around the park.

Wyoming and Idaho were preparing to allow their first public grizzly bear hunts in 40 years to start Sept. 1, but a judge delayed them amid a lawsuit over whether the bears still deserve federal protection.

More From KGAB