Attackers with knives killed a Tunisian National Guard officer and wounded another Sunday before three assailants were later shot dead in a firefight, the military force said, labelling it a "terrorist" act.
The stabbing attack took place in the tourist district of Sousse, the coastal city hit by the worst of Tunisia's jihadist attacks of recent years, when 38 people, most of them Britons, were killed in a 2015 beachside shooting rampage.
A patrol of two National Guard officers was targeted in the knife attack in Sousse, 140 kilometres (80 miles) south of the capital Tunis, said National Guard spokesman Houcem Eddine Jebabli.
"One died as a martyr and the other was wounded and is hospitalised," he said, adding that "this was a terrorist attack".
The attackers had first rammed the gendarmes with a vehicle at about 6:40 am (0540 GMT).
After the knife attack, security forces pursued the assailants, who had taken the officers' guns and vehicle, through the Akouda district of the city's tourist area of El-Kantaoui, said Jebabli.
"In a firefight three terrorists were killed," he said, adding that security forces "managed to recover" the car and two pistols the assailants had stolen.
President Kais Saied, on a visit hours later to the sealed-off scene of the knife attack, said police were investigating whether the attack was planned "by individuals or an organisation".
British ambassador to Tunisia Louise de Sousa tweeted she was "appalled to hear of the attack on a National Guard patrol in #Sousse this morning.
"My sincere condolences to the family of the murdered officer & I wish a swift recovery to the injured. #UKsupportTunisia"
- Series of attacks -
Tunisia, since its 2011 popular revolution, has been hit by a string of jihadist attacks that have killed dozens of security personnel, civilians and foreign tourists.
A suicide attack against security forces protecting the US Embassy in Tunis killed a Tunisian police officer and left several others wounded in March.
2015 was a particularly bloody year, with three major deadly attacks claimed by the Islamic State group.
An attack at the capital's Bardo museum in March killed 21 foreign tourists and a security guard.
Just three months later, the 38 tourists were killed in the shooting rampage at Sousse.
And in November of that year, a bomb blast on a bus in central Tunis killed 12 presidential guards.
While the situation has significantly improved since then, Tunisia has maintained a state of emergency.
Assaults on security forces have persisted, mainly in remote areas along the border with Algeria.
Tunisia has been praised as a rare success story among the 2011 Arab Spring revolts that swept the region and brought down many autocrats, among them Tunisia's long-time president Zine El Abidine Ben Ali.
But the small Mediterranean country of about 11 million people is mired in an economic crisis, with the official unemployment rate at 18 percent, and in need of new assistance from the International Monetary Fund.
Last week Tunisia's parliament approved a new technocratic government led by Prime Minister Hichem Mechichi, which faces the task of tackling deep social and economic woes in the North African country.
The 46-year-old premier pledged to revitalise the economy, including the crucial tourism sector, which had rebounded after the jihadist attacks but has been hit hard this year by the coronavirus pandemic.
(Except for the headline, this story has not been edited by NDTV staff and is published from a syndicated feed.)
Track Latest News Live on NDTV.com and get news updates from India and around the world