BERKELEY (CBS SF) — A 19-year-old man was arrested in Berkeley after allegedly firing a gun outside the home of a person who had recently ended a relationship with him.

Last week, Berkeley police said a victim reported ongoing threatening messages from the unidentified Vallejo resident, and had heard a loud pop outside the victim’s home.

READ MORE: Antioch, Oakland Police Announce Arrests In Series Of Shootings Blamed On Gang War

The suspect told a mutual friend he had fired a shot outside the victim’s home, which the friend relayed to the victim, police said. The victim also reported the suspect had posted a picture of a gun on social media.

READ MORE: Regulators Rebuke PG&E For Neglect In Reducing Wildfire Risk

An illegal “ghost gun” recovered from Berkeley stalking suspect. (Berkeley Police Dept.)

Detectives worked with patrol officers to find and arrest the suspect in the Berkeley Hills, and found an illegal “ghost gun” after serving a search warrant at his home, police said.

The suspect was charged with stalking, discharging a firearm, and felony and misdemeanor weapons violations.

MORE NEWS: Clayton Man Pleads Guilty To Online Child Exploitation