A man was shot and killed by his accomplice during an attempted home invasion in Chicago Tuesday night, according to police.