Follow KDKA-TV: Facebook | Twitter

WYNCOTE, Pa. (AP) — A man pulled a gun during a dispute with another customer in Walmart checkout lines near Philadelphia and opened fire, wounding several people before fleeing but was later arrested after crashing into a police vehicle, police said Tuesday night.

All victims sustained non-life-threatening injuries in the gunfire reported just after 6 p.m. Tuesday in the crowded store at the Cedarbrook Plaza Shopping Center, Cheltenham Township Chief of Police John Frye said.

cheltenham walmart shooting 3 Police: Dispute In Checkout Line Lead To Pa. Walmart Shooting

(Photo Credit: CBS Philly)

Frye said the gunfire started after some type of altercation between customers in separate lines near the cash register, when “words were exchanged” and the suspect pulled a gun from his female companion’s waistband and fired “at least 10 shots.”

Two women in their 40s and a man in his 40s were wounded in the legs and another person had a graze wound, while a fifth person later went to a hospital with unspecified injuries. In addition, a pregnant woman was taken to the hospital after a fall, he said. Frye said it wasn’t immediately clear whether the person the man was arguing with was among the victims.

CBS Philly’s Chopper flies over the scene:

The male suspect and his female companion fled, tossing the gun from the car, but then ran into a police vehicle. Two officers whose vehicle was rear-ended were taken to hospitals along with the woman in the suspect’s car, while the male suspect was also arrested after being hit with a stun gun when he tried to break the window of the police vehicle, a Philadelphia police spokesman said. The officers, suspect and female passenger were in stable condition, he said.

Frye called the shooting a “very dangerous situation,” given that it was a “very crowded Walmart, a lot of shots were low, the floor is hard … there’s a risk of ricochet.” Reports from the hospital, he said, indicate that the suspected shooter was “definitely on some type of drugs.”

Watch the police news conference:

More than 22 police departments responded to the scene, Frye said. A SWAT team was checking the store and others in the complex and Walmart employees remained inside for their safety and to allow police to interview them, he said.

A Walmart representative didn’t immediately return a message seeking comment.

(© Copyright 2018 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)