A program to distribute environmentally friendly stoves in developing countries turned into a scheme to steal carbon credits and bilk investors, prosecutors said.