An unidentified assailant stabbed a policeman to death outside a court in northern Tunisia on Monday, the interior ministry said.
The attack outside the appeals court in the city of Bizerte also wounded a member of the military, the ministry said in a statement.
The assailant was immediately detained and investigations are ongoing as to the cause of the assault, it said, without providing further details.
The attack comes as Tunisia is in the midst of the country’s second free presidential elections since the 2011 ouster of autocrat Zine El Abidine Ben Ali.
A second-round next month is to pit law professor and political outsider Kais Saied against jailed media tycoon Nabil Karoui.
Both candidates have given precedence to socio-economic issues over counter-terrorism in their electoral campaigns.
In 2015, devastating attacks claimed by the Islamic State group killed 72 people, mostly foreign tourists and security personnel, in Tunisia.
Security has since improved, but a state of emergency has been repeatedly extended.