NAIROBI: Among the key messages US President Barack Obama delivered during his recent visit to Kenya was a call for the Government to partner with local communities in efforts to root out the cancer of terrorism rather than alienating them.

Establishing good partnerships with communities in which terrorists may hide or target for recruitment is the best strategy to identify and isolate the few bad elements responsible for terror attacks, he said. In response to that call, President Uhuru Kenyatta indicated a strong willingness to learn and borrow from the successful counter-terrorism experiences of other countries that robustly combat the few criminals responsible for terrorism without alienating entire communities through collective victimisation.

Since the country began experiencing large-scale attacks from Al Shabaab militants several years ago, counter-terrorism tactics have largely been indiscriminate, involving mass arrests and detention of persons from certain communities and extra-judicial killings, among others. Such tactics, which treat entire communities as enemies or legitimate targets in combating terrorism, is largely responsible for the current poor relationship between security agencies and the communities. A number of critical issues need to be addressed to reverse this.

Firstly, there is need for strong political will to abandon the previous tactics of collective victimisation of entire communities. This should urgently be replaced by efforts to work with those communities to zero in on the troublemakers behind terror attacks.

It is worth noting that while Mr Kenyatta was making a public commitment to review the country's counter-terrorism tactics, top policy makers in the Interior ministry were publicly reading from a different script.

For Instance, Interior Principal Secretary Monica Juma was on national TV unapologetically justifying last year's infamous "Usalama Watch" operation in which thousands of people of certain communities, including women and children, were arrested and detained at Kasarani Stadium following bomb attacks across the country.

The infamous operation, which was ostensibly targeting refugees, was characterised by physical and sexual assault, police extortion and outright theft, among other crimes in the name of combating terrorism. Rationalising such an operation shows that some top policy makers in the security sector still need a fundamental change of attitude in combating terrorism. The same mistaken attitude unfortunately pervades much of the security agencies. Only clear and robust leadership by the country's leadership will help address the issue.

Secondly, security agencies need enhanced training on how best to respond and prevent terrorism through smart tactics such as robust intelligence gathering and isolating potential troublemakers rather than the policies of collective assaults on whole communities. Collective victimisation undermines efforts to combat terrorism since it weakens the trust and confidence needed between the security agencies and local communities in information-sharing and whistle-blowing against the terrorists.

Furthermore, indiscriminate tactics increase the likelihood of radicalisation of more people within the communities and plays into the hands of those behind terrorist attacks. Ironically, the same communities that have been victims of collective victimisation have always been accused of not cooperating with security agencies in identifying the bad elements among them. They are accused of being "sympathisers" or even active supporters of the terrorists.

Thirdly, partnerships between government and local communities have been frustrated by corruption and lack of integrity within the security agencies. Recently, reports emerged in Mandera County that patriotic citizens who shared information with police regarding potential terrorists lost their lives when officers revealed their identities to the suspected terrorists.

Such incidents strengthen perceptions that police are working in cahoots with criminals and terrorists for financial gain. This significantly undermines the cooperation with security agencies and dries up potentially useful intelligence that may prevent future attacks. In other instances, security agencies have failed to take action on crucial information provided by communities that would have helped in preventing terrorist attacks or minimising loss of lives and other damages.

For instance, after the terrible attack on Garissa University College, it emerged that many parents, including those of one of the attackers, had shared information about their children who had gone missing and were in Somalia and who may be planning attacks inside the country.

However, that information was not acted upon by the authorities as one would have expected. Such inaction and inertia only undermines the working relationship with local communities.

There is no doubt that the country's response to terrorism is bound to evolve for the better once policy makers and the security machinery make sincere efforts of establishing a productive relationship with local communities rather than treating them as enemies.