SAN FRANCISCO (CBS SF) — A 44-year-old man was arrested after allegedly trying to kidnap two young children from a vehicle in San Francisco’s Castro District on Wednesday evening, according to police.

The attempted kidnapping was reported at about 7 p.m. in the area of 17th and Sanchez streets.

READ MORE: Firefighters Working to Save Giant Sequoias Forced to Flee Advancing Flames

Investigators said a family was sitting in their vehicle when the suspect, whose name was not immediately available, reached through a backseat window and tried to grab two boys ages 2 and 4.

READ MORE: San Mateo Deputies Arrest Man Suspected in Stabbing Attack With Wood Stake

The suspect’s brazen attempt was thwarted when another family member confronted the man and called police. The man was detained until police arrived and arrested him.

The two boys were not injured, according to police.

MORE NEWS: UPDATE: Southbound Hwy 17 Lanes Cleared After Woman Jumps Off Pedestrian Bridge

No other information about the case was immediately available as of Thursday morning.