Derrick Marshall, 32, is being charged with aggravated assault, endangering welfare and other related offenses in connection with the incident.
The shooting happened just after 6:15 p.m. Wednesday in the parking lot of the fast food restaurant at North Broad Street and West Allegheny Avenue.
[Ads /]
Police say a video shows the 9-year-old girl getting shot in the leg while walking to the business with her mother's boyfriend.
According to investigators, Marshall's gun accidentally discharged and hit the child.
The girl was taken to the hospital in stable condition.
[Ads /]
RELATED: Check the 6abc Neighborhood Safety Tracker