A man fatally shot by his girlfriend’s ex identified the killer to cops on his deathbed, police sources said Wednesday. The 34-year-old victim was shot in the chest around 4 p.m. Tuesday in the Gowanus Houses after his girlfriend’s former flame, Rudolph Riley, 28, caught him at her apartment, the sources said.