A Hesperia man allegedly threw a handgun out the window of a moving vehicle while being pursued by a San Bernardino County Sheriff's Department deputy.

Shortly before 4 p.m. on Sunday, June 1, Deputy Kevin McCurdy was on patrol near the intersection of Smoke Tree Street and Second Avenue when he reportedly observed a vehicle driving erratically with three occupants inside.

McCurdy turned on his vehicle's lights in an attempt to pull the vehicle over. Instead of pulling over, however, the vehicle slowed and the front seat passenger allegedly tossed a handgun out the window.

Seeing this, McCurdy turned on his vehicle's siren, and the vehicle pulled over. David Castellanos, 22, then allegedly leapt out of the front passenger seat of the vehicle and fled on foot.

Deputy John Clough arrived to assist and ordered the juvenile suspect driver and backseat passenger out of the vehicle at gunpoint.

The area was searched, but Castellanos was not located. The firearm was found in the front yard of a residence on Smoke Tree Street.

At 5:20 p.m., the Hesperia sheriff's station received a report of a suspicious person near the witness' residence. The description of the person matched Castellanos, and deputies responded to the location and took him into custody.

Castellanos was booked at Victor Valley Jail for possession of a loaded firearm.

The juvenile driver of the vehicle was booked at Apple Valley Juvenile Detention center for failure to yield.

Beau Yarbrough can be reached at 956-7108 or at beau@hesperiastar.com.