Police in South Carolina say the baby sitter of a 4-year-old child who accidentally shot himself has been arrested.

News outlets report that Greenville police say Lydia Riley was arrested and charged with illegal neglect of a child after the boy shot himself in the hand at a home Aug. 1.

Police say the child had grabbed a pistol from a kitchen table.

Greenville Police Officer Gilberto Franco says the boy was taken to the hospital. Authorities say the injury was not life-threatening.

Police say Riley was caring for the child and was getting groceries from her car when the shooting happened.

Two other children were there when the shooting occurred.

It isn't immediately clear if Riley has an attorney.