A gunman was shot and captured by Lebanese soldiers after a Wednesday morning shootout outside the U.S. Embassy near Beirut that injured an embassy security guard, the military and embassy officals said.

The attack took place as tensions continued to simmer in the tiny Mediterranean country, where months of fighting between Hezbollah militants and Israeli troops has displaced thousands along the border, following years of political deadlock and economic hardship.

The Lebanese military in a statement said that soldiers shot an assailant, who they only described as a Syrian national. The gunman was wounded and taken to a hospital.