A security guard on duty outside the Brazilian embassy in Tunis was stabbed today by a man who attacked him and was arrested by police, Tunisia’s interior ministry said.

The guard was “injured by a sharp object from a person whom he was asking why he was on the perimeter of the embassy,” the ministry said in its statement.

Law enforcement arrested the attacker after opening fire on him, injuring him in the leg, according to the same source. The man, whose name has not been released, was hospitalized.

The ministry did not specify the severity of the security guard’s injuries. However, Tunisian media reported that he was taken to a hospital.

After the 2011 popular uprising that led to the fall of dictator Zine El Abidine Ben Ali, Tunisia has seen the rise of jihadist groups. Attacks carried out by jihadists have caused dozens of deaths among tourists and security forces.

Authorities say they have made significant progress in the fight against jihadists in recent years.

However, last month, a gendarme opened fire near a synagogue in Djerba.

Three gendarmes and two worshipers — an Israeli-Tunisian and a French-Tunisian — were killed by gunfire from the attacker, before he was killed by police fire.