Los Angeles: An American man was arrested for leaving his five-year-old granddaughter in the Arizona desert with a loaded gun while he went off to have a hamburger.

The child’s family reported her missing four hours after Paul Rater, 53, left his home Sunday night in the town of Buckeye.

Authorities launched a search operation and relatives ended up finding the girl in a desert area with a loaded pistol.

Maricopa County Sherriff Joe Arpaio said, “The child was given a loaded gun and told to shoot any bad guys. I don’t know how a five-year-old can tell a good guy from a bad guy but that’s what she said she was told.”

Rater acknowledged having abandoned the girl so he could go off for drinks and a hamburger. Rater was jailed Monday on charges of abusing and abandoning a child.