A man suspected of making “credible threats” against California’s Capitol after shooting a gun from his vehicle and lodging bullets in the wall of a hospital and commercial building in the suburbs of Sacramento was arrested Thursday afternoon, authorities said.