The incident started with a probation check near 40th and E streets in unincorporated San Bernardino Thursday morning.
The situation turned into a short foot pursuit, San Bernardino County Sheriff's officials said.
Deputies set up a perimeter in the area, and negotiators arrived on scene.
Investigators said the man was holding a gun to his head. No other details were immediately available.
A nearby day care/learning center was placed on lockdown. Witnesses said there were approximately 30 children inside the facility.
Sheriff's officials later tweeted the suspect surrendered and has been taken into custody.
Officials confirmed no schools or students were impacted by the incident.
ABC7 has decided to remove the comments section from stories. We believe very strongly that our audience should have an opportunity to discuss and debate events in our world; however, we have not been able to moderate the comments as well as we would like. Instead of hosting a platform that could allow a few loud and ugly voices to dominate a conversation, we want to encourage everyone to join us on our social media platforms and speak out there.