IDAHO FALLS, Idaho (AP) — Authorities say a 3-year-old in Idaho picked up an unattended, loaded gun and accidentally shot a man in the foot.

The Post Register reports the Rigby Police say the Idaho Falls boy picked up a .40-caliber hand gun and fired it, causing the bullet to ricochet off a windowsill and hit 25-year-old Travis Sorensen in the foot. Police say Sorensen was helping a family move out of a residence in Rigby at the time.

According to a press release, the gun was found between mattresses while a bed was being broken down. Rigby Police Spokeswoman carol Shackelford says she doesn't know if the gun was registered to anyone in the home. Sorenson was treated for the bullet wound. The press release says no charges have been filed.