Man killed, friend hurt outside apartment complex