More like bombed Gaddafi and guaranteed his downfall than bombed "Libya". It is probably a bit more complicated than that, though. The U.S./NATO were also involved and there is a lot of money there.
He probably thought he could get away with it. But make no mistake this is a political play and everyone involved is as dirty as the Paris Seine.