At least 22 people, including 13 militants, were killed in Tunisia when a group of gunmen stormed into the military barracks near the Libyan border.
Five civilians and four security personnel were also killed in the ongoing clashes, Xinhua news agency reported citing Radio Mosaique FM.
The security forces have also arrested six militants.
The North African country has witnessed several major terrorist attacks since 2015.
In March 2015, the Islamic State (IS) attacked Bardo Museum in Tunis killing 22 people, most of them were foreign tourists.
In June 2015, a 23-year-old student attacked the Marhaba hotel in Sousse, killing 38 foreign tourists.