A man is in police custody today, after he allegedly took to a rooftop to shoot Tenderloin pedestrians with a pellet gun.

Police were called to the 600 block of Larkin Street, which is between Ellis and Eddy Streets, at 6:14 p.m. Saturday on reports of a shooting.

According to the San Francisco Police Department, when they arrived they learned that a man had been "shooting at passerby from a rooftop," injuring a 41-year-old man in the leg. He was transported to San Francisco General Hospital with non-life-threatening injuries, police say.

Police located and arrested the alleged shooter, a 31-year-old man who they say had been shooting at people with a pellet gun from his elevated position. He remains in custody as of this morning, according to the SFPD. As of publication time, they did not have any additional details on the case to share, including any motive behind the attack.