ROCKFORD, Ill. (WTVO) — Video taken by a Walmart shopper shows the moment Timothy Carter, 28, wielding the knife he allegedly used to murder 18-year-old employee Jason Jenkins, surrenders to security officers.

According to Rockford Police, officers were called to the Walmart, at 3849 Northridge Drive, around 6:05 p.m. on Sunday for a reported stabbing.

According to the criminal complaint, witnesses heard Jenkins screaming for help after Carter allegedly took a knife from a store shelf, walked up behind him, and stabbed the teen in the lower back.

Witnesses told police he uttered a racial slur after stabbing Jenkins in the unprovoked attack.

Jenkins was taken to a local hospital where he underwent surgery but died at 7:48 p.m, according to the Winnebago County Coroner.

Carter remained on the scene and was taken into custody.

Credit: Heather Ryks

The video, taken by Heather Ryks, shows him walking through the aisles displaying the knife in his hands.

He then places the knife on the ground and surrenders to security officers.

According to the arrest report, Carter told authorities that he was having a mental health crisis earlier that afternoon and sought mental health treatment from Rosecrance, at 605 Mulberry Street.

When staff allegedly denied him treatment, Carter said he would kill himself, prompting the staff to transport him to UW Health Swedish American. Carter told police he did not receive mental health treatment and was released.

He then made his way to the Walmart, located five miles away.

Police said they reviewed surveillance video and said Carter was seen wandering around the store prior to the attack “giving all of the African American people dirty looks,” according to the arrest report.

In a follow-up statement, Rosecrance said, “As with the rest of our community, Rosecrance is shocked by this recent act of violence and unthinkable loss of life. While we cannot and will not speak about the person involved in this incident, there are times in which individuals may seek our treatment but are assessed to be an acute risk to self or others. In these cases, we will safely refer those individuals to a higher level of care.”

A UW Health representative said, “Patients aged 10 and up who present to the emergency department are screened for risk of harm to self or others and triaged appropriately.”

Walmart remained closed on Monday and reopened on Tuesday with extra security, according to an employee.