A man who was shot Thursday during a dispute over child custody at an Escambia County McDonald's was arrested after he was released from the hospital later that day.

Roger David Madden, 45, was taken into custody by the Escambia County Sheriff's Office on Thursday, said ECSO spokesman Maj. Andrew Hobbs. Madden was being held at the Escambia County Jail on a $100,000 bond as of Friday afternoon.

At about 3:45 p.m. Thursday, Madden and another man were allegedly involved in a dispute over child custody in the parking lot of the McDonald's near South Highway 29 and Old Chemstrand Road, and the incident escalated into physical violence.

Hobbs said the verbal dispute ended with Madden walking away from the other man's car. But Madden then allegedly turned around, walked back toward the vehicle and flung himself through the open driver's side window and began punching the other man.

The second man fired a single shot in self-defense at Madden, striking his arm, Hobbs said. The gunshot wound was not life-threatening.

Deputies arrived in time to make contact with everyone involved in the incident and determined there was not an immediate threat to the public, Hobbs said.

Madden was charged with burglary with assault or battery and was booked into jail.

Colin Warren-Hicks can be reached at colinwarrenhicks@pnj.com or 850-435-8680.