A man fatally shot his ex-girlfriend and injured her new boyfriend, an off-duty police officer, before turning the gun on himself, police said on Friday.