Several armed men attacked the headquarters of the National Oil Corporation (NOC) in the Libyan capital on Monday and several blasts could be heard, a Reuters witness said.