Two men have been charged over an incident in which shots were fired in a residential street.