A man began shooting in the parking lot of a Union City car dealership Friday after attempting to rob a nearby gas station, police said.

Employees at a QuikTrip at 4745 Jonesboro Road were able to remove the man, who police said was trying to steal items from behind the register, before officers arrived. Shortly after, officers were detoured to the BMW of South Atlanta, about a mile away, after a 911 call came in about an active shooter.

When officers arrived at the car dealership, employees were restraining a man, police said. Authorities were able to take over and detain him.

The investigation revealed the man, later identified as 31-year-old Jawan Tyler, was also responsible for the QT incident and had then gone to the dealership, where he discharged eight rounds from his handgun in the parking lot, police said.

According to an incident report, witnesses told officers that Tyler walked into the dealership showroom with a gun after firing outside. A witness said he was hiding under a desk in the showroom office when Tyler stated, “If you lift your head up, I will shoot you,” the report reveals.

Tyler remains in the Fulton County Jail and faces 12 counts of aggravated assault, two counts of receiving stolen property, armed robbery, possession of a weapon during the commission of a felony and possession of cocaine.

No one was injured in either incident.