A 19-year-old rapper was fatally shot in Brooklyn on Wednesday afternoon and two others were injured, police sources said.