An armed group has attacked the headquarters of the National Oil Corporation in Tripoli.