David Morales, a 19-year-old San Francisco resident, was identified by police as the driver whose car collided with another and caused two deaths Tuesday morning. Police said the driver shot at three pedestrians near Valencia Gardens at 14th and Guerrero streets, then fled from authorities as they attempted to make a traffic stop.

The collision, which left two people dead and one seriously injured, occurred at 21st Street and South Van Ness Avenue.

Police said that Morales is a gang member but would not say which gang. He was booked into county jail on two charges of murder, three of attempted murder, one of evading a peace officer, and one of being a convicted felon in possession of a firearm with a gang enhancement.

Police would not disclose Morales’ felony history.

A video shot by a Mission resident seconds after the collision shows police surrounding the vehicle and arresting a suspect.

Morales, who was also injured and taken to San Francisco General Hospital, was taken into custody shortly after the crash.

On Tuesday, police responded to a call of a shooting from a black four-door vehicle near Valencia Gardens at 14th and Guerrero streets at about 7:45 a.m. Morales confronted three pedestrians and shot at them with a handgun, according to police. The officers saw the vehicle a few blocks away and attempted a traffic stop.

The black vehicle drove away at high speed as an officer approached the vehicle on foot, according to Carlos Manfredi, the police department’s media relations officer. There was no pursuit.

A few blocks away, as it was heading northbound on South Van Ness, the suspect’s vehicle hit a car that in turn hit the northeast corner of a convenience store on 21st Street and South Van Ness Avenue. A pedestrian who was walking into the store was struck by the vehicle that had been hit and was pronounced dead at the scene, said Manfredi.

Mission Local spoke with Eyad Ibrahim, the owner of Muzio’s Wine Liquor, the corner store that was hit by the vehicle.

“The white car hit my door,” Ibrahim said. “It took it off the hinges.” The damaged door has been replaced by a large piece of plywood.

Ibrahim said he didn’t know the pedestrian who was struck while walking near the store.

“There was yellow tape all around,” he said. “Nobody could come in until 2:30 p.m.”

Shards of glass were still scattered around the corner Wednesday morning, and a small memorial with candles was set up near the entrance.

The driver of the vehicle that Morales allegedly hit was upgraded from critical to serious condition today. He is 18 years old, according to police.

The other victims were the 26-year-old pedestrian and a 29-year-old woman who was the passenger of the second vehicle.

“Well, it’s bad,” Ibrahim said of the victims. “To start the new year like this, it’s really sad.”