More than a thousand protesters gathered on Monday in the Tunisian town of Jendouba to condemn the weekend killings of four people by suspected Islamist militants.
"Tunisia is free, terrorism out," and "Faithful to our martyrs" were among the slogans chanted by the protesters outside the governor's office in the town in northwestern Tunisia, an AFP journalist reported.
Tunisia has been rocked by sporadic attacks blamed on jihadists since the 2011 revolution that toppled a decades-old dictatorship and touched off Arab Spring uprisings across the region.
The protesters expressed their support for the security forces, stopping before two police posts, chanting the national anthem and shouting: "We are with you!"
Many later joined the separate funerals of the four victims of Saturday's attack.
On that day, a group of armed men who had set up a roadblock in the Jendouba area, some 40 kilometres (25 miles) from the Algerian border, shot dead a civilian and a prison warden as their car approached, the interior ministry said.
When a National Guard patrol was sent to investigate, the militants again opened fire, killing two policemen and wounding another two.
The armed group consisted of three Tunisians and two Algerians, according to police.
Interior Minister Lotfi Ben Jeddou attended Monday's funeral of one of the police officers.
Such funerals have in the past ignited protests, with security forces members calling for more and better equipment, especially at frontline border posts.
Much of the deadly violence witnessed in Tunisia since the January 2011 uprising has been blamed on Ansar al-Sharia, a hardline Salafist movement accused of having links to Al-Qaeda.
The government has said Ansar al-Sharia was behind the separate assassinations last year of two secular politicians, killings that plunged Tunisia into political turmoil, but the group never claimed responsibility for those or any other attacks.
For more than a year, the security forces have been battling Islamist militants hiding out in the remote border regions of western Tunisia, notably in the Chaambi mountains.