The president of Nigeria made his first official state visit to neighboring Cameroon on Wednesday, as the two former enemies struggle to contain the mutual threat posed by Islamic militants carrying out suicide bombings across the region.