None of the roughly two dozen congregants inside were injured, but bullets peppered surrounding homes, vehicles and the synagogue’s windows.