Gunmen dressed as security officials have killed four and wounded three others.
Fighters disguised as security officials have killed three Tunisian policemen and a civilian in an attack near the border with Algeria.
State news agency TAP said on Sunday that four gunmen dressed as Tunisian security officials killed the four and wounded two police and a border agent just after midnight.
The agency did not name any group in the attack, according to Reuters news agency. A statement from Tunisia's Interior Ministry said early on Sunday that fighters shot at a vehicle driving along a road in the northwest of the country near Jendouba, killing a prison official, a civilian and wounding two others, according to AP news agency.
The fighters stole weapons and a vehicle in d'Awled Manna, in northwest Jendouba province, TAP said.
Ansar al-Sharia was one of the most hardline groups to emerge after Tunisia's 2011 uprising against autocrat Zine el-Abidine Ben Ali, whose government often jailed opposition leaders.
Earlier this month, police killed seven armed with suicide bomb vests and explosives in a raid north of the capital.