A San Francisco police officer and two people are recovering in the hospital after five people were injured in a shooting on Wednesday at a barber shop in San Francisco.

The alleged gunman, 21-year-old Suisun resident Jehad Eid, was inside the Amazon Barber Shop where he exchanged gunfire with officers outside, according to the shop's owner. The suspect later died from his injuries Wednesday evening at Zuckerberg San Francisco General Hospital, police said.

The unidentified officer was shot in the leg and remains in fair condition, hospital officials said.

One of the six patients submitted to the hospital following a shooting that involved a San Francisco Police Department officer and five others Wednesday has died. Pete Suratos reports.

Officers responded to reports of a man with a gun in the 200 block of Amazon Avenue, near the Outer Mission and Crocker-Amazon neighborhoods, at around 4:30 p.m. Wednesday, San Francisco Police Department Chief William Scott said.

The barbers told NBC Bay Area that they had never seen Eid before he entired the shop. It was unclear why he had firearm and no other details of the investigation were immediately available. The suspect's family could not be reached for comment.

The owner of a now bullet-holes-ridden Barber shop Vladimir Shtynberg told NBC Bay Area that two of his barbers were injured in the shooting but they are expected to recover.

A video of the shooting posted on Instagram shows an injured police officer crawling outside the barber shop, police surrounding the area and another injured man taking cover at a pharmacy next door.

SF Police Officer Wounded in Shooting

Naiel Nasrah, the manager of Daniels Pharmacy next door, said he heard several gunshots, ran up the stairs and saw the injured barbers running inside the store.

Nasrah said he was worried about everybody in the neighborhood because his family works at the pharmacy. "Everybody in here’s tight knit. Everybody here knows the pharmacy and the barbershop," Nasrah told NBC Bay Area.

The Amazon Barber Shop has been around for over 100 years, according to Shtynberg and Daniels Pharmacy opened its doors to the neighborhood in 1949, Nasrah said.

Missing Attachment A police officer and five others are hospitalized following an officer-involved shooting Wednesday in San Francisco, officials said. Pete Suratos reports.

Another video captured by J&J Hardware store's surveillance camera shows a group of police officers walking into the barber shop, and shortly after, the gunfire that followed.

While it wasn't immediately clear whether the injuries were caused by the alleged gunman or police, but one witness, Marvin Totah, said the suspect "wasn't looking at where he was shooting" and he could have "ended up hitting everybody else."

Police are still investigating the incident and anyone with information is asked to call the SFPD 24 Hour Tip Line at (415) 575-4444 or Text-A-Tip to TIP411 and begin the text message with SFPD.