A 2-year-old boy is hospitalized in critical condition after he was shot during an apparent accident in a motel room near Atlanta, authorities said.

DeKalb County police Lt. Mark Lavigne told The Atlanta Journal-Constitution that the shooting happened around 2:15 a.m. Monday at a Knight's Inn in DeKalb County.

DeKalb County police Sgt. Vincent Gamble told WXIA-TV that the boy took a revolver out of his mother's purse while she was sleeping.

Lavigne told WSB-TV that "the information we're getting is that it's accidental."

Lavigne said the family is from North Carolina, and had just checked in at the motel on Sunday night.

Lavigne said the child was in surgery early Monday morning.