An armed shopper shot and killed a suspected carjacker after he opened fire at a busy Walmart.

The bystander stepped in and gunned down the suspect in the parking lot of the store in Tumwater, Washington, on Sunday afternoon.

At least two people, including a 16-year-old girl, were injured before the attack was thwarted.

Law enforcement officials rushed to the scene at around 5pm local time, according to the Tacoma News Tribune.

Law enforcement officials are rushing to the scene of a reported shooting at a Walmart store in Washington state

According to local police, an armed man attempted a carjacking.

The driver of the car was shot and wounded. A 16-year-old girl also suffered minor wounds at a different location nearby.

The driver was airlifted to a Seattle hospital and is said to be in critical condition, according to NW News Network.

Tumwater, which is located in Thurston County, lies about 60 miles south of Seattle.

Police said that the incident started in the parking lot of a local high school.

Authorities were notified of an erratic driver near Tumwater High School.

As police were on their way, they received reports of a carjacking and shots fired at a nearby intersection.

Emergency dispatchers said that so far there are two people who were confirmed shot

A bystander was wounded in the shooting and airlifted to a Seattle hospital

The suspect stole one car and attempted to carjack another vehicle before being shot dead by an armed civilian bystander, according to police

Police were initially informed of an erratic driver near a local high school

A 16-year-old girl was wounded near an intersection after the suspect carjacked a vehicle

Officers noticed a stolen vehicle and said they chased it to the nearby Walmart.

In the parking lot of the Walmart, the carjacker allegedly got out of the first stolen car and tried to steal another vehicle.

The carjacker then shot the driver before he was shot dead by an armed bystander.

Witnesses also reported hearing at least 10 gunshots.

Darren Gossler, an eyewitness to the shooting, tweeted: 'I was in the dairy section.

'Heard about 5 or 6 pops. Ran out a side emergency exit and attempted to run to my car in the parking lot but heard 4 more pops in the lot.

'Caught a quick glimpse of a male with what appeared to be a handgun.

'Ducked under some cars and ran to Costco.'

Gossler said he gave a statement to police.