The reason is indeed that Trapani is now used by a lot of military traffic and they don't want civil aircraft 'messing' around there.
There's no time scale on the closure, I expect the airport to re-open to civil traffic when the military actions in Libya are completed, nobody knows how long that will take.