Seoul: But Mabruk Abu Zaheir, another official at the interior ministry, told the LANA news agency that one guard and a civilian at the scene were killed and a second guard seriously wounded.
The foreign ministry in Seoul confirmed the attack, saying three South Koreans working in the embassy - including two diplomats - were unhurt.
It also said two Libyan guards were among the dead.
"We do not know whether the attack targeted the embassy or the Libyan (security) officers," a ministry official told AFP on condition of anonymity, adding that it was considering evacuating all its staffers from the country.
An AFP photographer at the scene of the attack said a vehicle used by the security guards was riddled with bullet holes, while it appeared that the main embassy building had not been hit.
IS claimed responsiblity for the attack on Twitter, according to SITE Intelligence Group.
"The Soldiers of the Caliphate in the city of Tripoli killed two of the guards at the South Korean embassy," the monitoring group quoted IS as saying on Twitter.
The jihadist group, notorious for its brutal rule of large areas of Iraq and Syria, has established branches in all three of Libya's historic regions.
Libya has been plagued by chaos since the end of the 2011 revolt that toppled Moamer Kadhafi, with heavily armed militias battling for control of its cities and oil wealth and rival governments and parliaments vying for power.
The country has had two governments and parliaments since Tripoli was seized in August by the Islamist-backed Fajr Libya militia and the internationally recognised government fled to the country's far east.
Gunmen killed two people and wounded a third in an attack at the South Korean embassy in the Libyan capital Tripoli today which was claimed by the Islamic State group.
The gunmen opened fire on the embassy compound from a passing car, killing two people and wounding a third, a Libyan interior ministry spokesman told AFP.
A security source at the location said the two dead were both Libyan guards, adding that while the embassy had been closed for several months, South Korean officials were continuing to use it.
The foreign ministry in Seoul confirmed the attack, saying three South Koreans working in the embassy - including two diplomats - were unhurt.
Advertisement
"We do not know whether the attack targeted the embassy or the Libyan (security) officers," a ministry official told AFP on condition of anonymity, adding that it was considering evacuating all its staffers from the country.
Advertisement
IS claimed responsiblity for the attack on Twitter, according to SITE Intelligence Group.
Advertisement
The jihadist group, notorious for its brutal rule of large areas of Iraq and Syria, has established branches in all three of Libya's historic regions.
Advertisement
The country has had two governments and parliaments since Tripoli was seized in August by the Islamist-backed Fajr Libya militia and the internationally recognised government fled to the country's far east.
COMMENTS
Advertisement
"Train Studio": Wholesome Video Of Men Singing, Vibing To Music In Mumbai Local Is Viral What Is Digital Arrest, The New Scam That Targeted Lucknow Writer-Poet 5 Facts On Raj Tarun, Telugu Actor Accused On Cheating By Live-In Partner 25,000 Aspirants For Airport Jobs Paying Rs 22,000: A Mumbai Stampede Scare Siddaramaiah Deletes Post On 100% Quota Bill, Karnataka Minister Clarifies Prank Goes Wrong: Woman Falls From 3rd Floor In Mumbai Building, Dies Huge Fire At Gulati Restaurant In Delhi's Pandara Road, No Casualty "This Is The Final Straw": Elon Musk Moving X And SpaceX Out Of California Urvashi Rautela's Bathroom Video Real Or PR Stunt? Internet Debates Track Latest News Live on NDTV.com and get news updates from India and around the world.