Sheriff's deputy shoots, kills armed man