Two Good Samaritans are being credited with saving a woman's life after she was attacked by two suspected carjackers who hit her over the head while she was putting her child into a car seat after leaving Walmart in Shawnee, Kansas, on Sunday.

An unarmed bystander, who rushed to the aid of the woman after hearing her screams, was shot multiple times by one of the suspects, according to police.

Another Good Samaritan saw what happened, got out of his car and shot one of the attackers dead.

TRENDING: Support for Black Lives Matter sees massive plunge, polls say

A shopper who had just exited the store recorded the aftermath of the shootings and posted the video to Facebook.

Wendy Russell Macrorie said she was shopping for light bulbs and a tire for her son's bicycle when people in the store began saying someone had been shot outside.

"So this is interesting. I am at Walmart, which I hate going to, and this is happening in front of my car," Macrorie says in the video.

Paramedics can be seen tending to the injured Good Samaritan as the body of a man wearing a beige shirt, blue jeans and white sneakers lies motionless in the foreground.

The dead attacker was identified as John W. Simmons, III, 28, of Kansas City. Simmons reportedly had a protective order filed against him in 2013 by the mother of his child, according to Missouri court records.

Police said the second attacker ran off and is still at large.

A man arrested near the scene was released after police questioned him and determined he was not involved, reported the Kansas City Star.

The Good Samaritan remained hospitalized in serious condition on Monday. The victim was released from the hospital and the child was not injured.

"You know our hearts and prayers go out to both of them for a speedy recovery. I know we have many people out right now, many teams of officers and detectives. We had to make contact with the family of Good Samaritan No. 1 to get them to the hospital to be with him, but apparently Good Samaritan No. 1 is able to talk," said Maj. Dan Tennis of the Shawnee Police Department.