SAN FRANCISCO (KRON) — A man was injured during a drive-by shooting in San Francisco’s Western Addition neighborhood Sunday night, police said.

Police were alerted to the shooting at 8:18 p.m. when a ShotSpotter gunshot detector was activated in the 1100 block of Eddy Street near Jefferson Square Park, according to police.

The victim, a man in his 20s, was struck in the shoulder and was grazed on the back of the head by rifle shots, police said. The victim is expected to survive his injuries.

The shots were fired by four men in a white four-door Acura who then fled the scene and remain at large Monday, according to police.

The shooting occurred hours after a homicide elsewhere in the Western Addition. Curtis Cail, 23, was fatally shot outside a McDonald’s restaurant in the 1100 block of Fillmore Street around 3 p.m. Sunday.

No arrests have been made in the killing of Cail.

The man shot dead was “targeted,” Police Chief Greg Suhr said Monday.

Cail had been previously arrested in connection with the fatal shooting of James Earl Lee, 54, on May 11, 2012 in the 1100 block of Turk Street.

A second victim, a 27-year-old woman, was also shot but survived, police said.

Cail was arrested along with Kenneth Chappell, then 33, and charged with murder, attempted murder and other charges, but those charges were dismissed in 2013, according to court records.

Police Chief Greg Suhr today said that investigators believed Cail was “targeted” but did not know whether his murder was connected to the 2012 murder.Bay City News Service contributed to this report