LOS ANGELES – A man accused of stabbing three people Tuesday was stopped when LAPD officers shot and killed him in a fast food restaurant in Hollywood officials said.

The knife attacks were reported about 2 p.m. near Sunset Boulevard and Ivar Avenue, said Sgt. Barry Montgomery, a spokesman for the Los Angeles Police Department.

When officers arrived, they saw the man standing outside Jack in the Box, said Sgt. Frank Preciado. He went back inside, where officers engaged him and there was a shooting, reported the Los Angeles Times. Consequently, the man died at the scene.

Police were trying to identify him late Tuesday. They are also trying to determine the motive for the attacks, said Preciado.

Two victims were located inside the restaurant and a third was found outside, Preciado said.

A video posted on social media by a witness showed the frantic moments inside the fast food restaurant after the stabbing. It is included in a local news report below.

Stabbing incident covered by KTLA:

Each victim sustained stab wounds and were taken to hospitals. Two were listed in critical condition, according to police. Fortunately, the third victim had injuries that were described as “non-life-threatening.”

CNN correspondent Maeve Reston, a former Los Angeles Times reporter, tweeted that the suspect ran down Sunset Boulevard and tried to stab people across from the CNN office. The office, she said, had been placed on lock down.

Reston reported the suspect was armed with a knife and tried to enter a coffee shop, but a customer held the glass door shut and blocked him.

In the video clip included with KTLA’s news story, a person pled for a belt or shoelace to be used as a tourniquet for one of the victim’s sitting in a chair with feet in a pool of blood.

“You’re going to be fine,” a person said.

Two people could be seen tying a belt onto the victim’s bloodied arm.

Moans could be heard in the video.

As an officer reports “shots fired,” another officer can be seen kneeling over a person lying face down on the ground and holding the person’s arm.