Carjacking suspect shot and killed while being detained by police

San Francisco police shot and killed a person after an alleged attempted carjacking Saturday night.