I think it's partly true. A greater reason was to neuter the Libyan sovereign wealth fund so that it could not fund projects in Africa.
A good example was Libya funding Africa's first telecommunication satellite. Having their own satellite saved Africa BILLIONS of dollars that were being extracted to the west.
Satellites and telecommunications. Until relatively recently, the African continent was dependent on its former rulers in Europe for access to satellite communications. Western companies like Intelsat used their monopoly position in space technology to fleece Africa for basic communications, collecting $500 million a year by making the most expensive place on Earth to make a phone call.
From 1992 onwards, African governments decided to actively try and extract themselves from such a blatant scam by putting up their own communications satellite. But western banks and the IMF failed to provide loans to make it possible. The project needed $400 million as a one off payment to save African countries more than that every year, meaning they would easily be able to pay it back. But with international lenders protecting the profits of European satellite companies, the project was stuck.
That is until Gadaffi stepped in with the cash, putting $300 million up to launch Africas first ever communications satellite in 2007. Although it was built and delivered by a European company, its not under their control. Whats more is that it has opened the door to African use of space, with established space powers such as Russia and China sharing technology and providing launch facilities for African countries. Algeria is now aiming to have the first satellite built and launched from African soil by 2020.
African countries have historically been divided from each other by state borders, infrastructure systems and communications networks that had been designed with the needs of colonial powers to extract resources in mind, rather than the needs of Africans themselves. Access to cheaper telecommunications is helping for the first time to connect people all over the continent by phone, broadcasting and internet. Even in rural areas people have access to distance learning, and practical information on sustainable technology and agriculture. The growth of African communications can have a transformative aspect thats unimaginable for someone living in a post-industrial advanced capitalist country.
The west probably would have funded the project in the end, but only through extortionate loans that would have stuck African countries for interest for decades afterwards, effectively wiping out the savings they were making and continuing dependence on former colonial powers. So by putting up the cost, Gadaffi was not only depriving European satellite companies of $500 million per year, but also in the long term meant western banks missed out on potentially billions in debt repayments that would have kept coming for a long time.
http://socialistcephalopod.wordpress.com/2011/08/17/5-things-you-might-not-have-known-about-the-war-in-libya/