Man is shot at apartment complex