I worked for a tech company in the past that had a product that would help stop kidnappings.
We made a sale to the government of a large third world country. They made their first payment and we began to deploy, but obstacles kept arising and nothing more came from it. The subsequent payments weren't made, the product might have disappeared from their warehouse, etc., so we fled the deal.
As it turns out, half the government wanted to end kidnappings, while the other half was perpetrating them. Either side was quick to pocket any lose budget on its way to unwary vendors.
Edit: Of course, illegal activities help to both supplement state funds and hide their source.