Nine others were treated for injuries after the early-morning shooting in the Crown Heights neighborhood, the police said.