It took just eight minutes to find the suspect in a shooting that injured one and put two schools on lockout.

A 911 caller told dispatch at 2:39 p.m. that someone had been shot in the leg at a Quick Pantry and provided a description of the shooter and his vehicle to authorities, according to a Greenwood County Sheriff’s Office news release sent Tuesday morning.

Within seven minutes, officers were on scene at the 904 Emerald Road convenience store. A minute later, deputies and Ninety Six police spotted what appeared to be the vehicle connected to the shooting and initiated a traffic stop.

Police learned from witnesses who were at the convenience store when the shooting happened that the shooter had approached a man at the gas station and asked him when he was going to pay him for repairing a vehicle, according to a report. The man told the shooter he didn’t owe him any money because he didn’t tell him to repair a vehicle, which was when the shooter fired.

Quentico Jason Dunlap, 27, of 629 Little Mountain Road, Ninety Six was charged with attempted murder, possession of a weapon during the commission of a violent crime, felon in possession of a firearm and violating his probation.

Dunlap is on probation on a domestic violence of a high and aggravated nature conviction. He was out on bond while awaiting trial on charges from March. Those charges are aggravated breach of peace and pointing and presenting a firearm.

He separately was charged, and later acquitted, of homicide by child abuse in connection to the death of his 3-month-old daughter.

As officers were arresting Dunlap, the injured man was taken to an area hospital for treatment.

While deputies were responding to the shooting, authorities asked Greenwood County School District 50 to put Brewer Middle and Woodfields Elementary on lockout as a precaution. Both are located about a block away from the shooting. Lockout was lifted at about 3 p.m.