A man was shot dead when someone unleashed more than a dozen rounds outside an apartment building in southwest Birmingham.