Deputies shot and killed an armed man early Thursday morning in Carmichael, the Sacramento County Sheriff's Office said.