San Bernardino County Deputy Michael Castaneda was driving home when he noticed a SUV stuck on the tracks; bystander video shows him pulling the child to safety