A low-flying fighter jet fired two missiles at Mitiga airport, which is in an eastern suburb of Tripoli and held by Fajr Libya, an anti-government Islamist militia coalition which controls the capital, witnesses said.
The security source said the strike however caused no damage to the airport terminal or runway.
Flights were temporarily diverted to Misrata airport, 200 kilometers (125 miles) east of Tripoli, the source added.
Libyan carriers moved civilian flights to Mitiga after Tripoli’s main international airport was damaged by fierce fighting in the capital between state-backed fighters and Islamist militias in July.
Fighting persists between the two sides in western Libya, where pro-government militias are supported by forces loyal to retired general Khalifa Haftar, and air raids frequently target Fajr Libya positions.
More than three years after strongman Moammar Gadhafi was toppled and killed in a NATO-backed revolt, Libya is awash with weapons and powerful militias, and run by rival governments and parliaments.