A man who was critically injured in a shooting in San Francisco's Mission District on July 5 died in the hospital, police and medical examiner's officials said.

Keith Smith, 24, of San Francisco, was shot in the 3100 block of 16th Street while standing outside with a group of people around 1:30 a.m. on July 5. A man reportedly approached them on foot and opened fire, then fled.

Two other men were also shot; their injuries were not life-threatening.

Smith died in San Francisco General Hospital.