Man shot, killed in apartment complex courtyard