This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

Please enable Javascript to watch this video

RANDLEMAN, N.C. -- Shots were fired in the Walmart parking lot in Randleman on Thursday afternoon, according to Randleman police.

The incident happened at about 3 p.m.

Randleman police officers on the scene said the shooting stemmed from a custody battle.

A judge granted custody of a 2-year-old to the child's father instead of the grandmother this morning, according to police. The father and grandmother had planned to meet at the Walmart parking lot to hand off the child.

Instead, police said, the grandmother had a gun, pulled up and opened fire.

The father was not injured by the gunfire.

The grandmother accidentally shot herself in the foot and drove off. She was apprehended a short time later.

The grandmother is currently in the hospital and charges are pending, police said.