LAGOS: Boko Haram gunmen attacked a Nigerian military base and adjacent police barracks simultaneously in the northeastern town of Buni Yadi on Tuesday, killing at least 24 security personnel, security sources and witness said.

The attack occurred not far from where the insurgents shot or burned to death 59 pupils at a boarding school in February.

Meanwhile, a source told AFP that Nigeria’s ex-President Olusegun Obasanjo has met with people close to Boko Haram in an attempt to broker the release of more than 200 kidnapped schoolgirls.

The meeting took place last weekend at Obasanjo’s farm in southern Ogun state and included relatives of some senior Boko Haram fighters as well as intermediaries and the former president, the source said.

“The meeting was focused on how to free the girls through negotiation,” said the source who requested anonymity, referring to the girls seized on April 14 from the remote northeastern town of Chibok, Borno state.

Reports of the talks emerged as Nigeria’s Chief of Defense Staff, Air Chief Marshal Alex Badeh, said the girls had been located while casting doubt on the prospect of rescuing them by force.

Obasanjo, who left office in 2007, has previously sought to negotiate with the insurgents, including in September 2011 after Boko Haram bombed the United Nations headquarters in Abuja.

Then, he flew to the militants’ base in the Borno state capital, Maiduguri, to meet relatives of former Boko Haram leader Mohammed Yusuf, who was killed in police custody in 2009.

The 2011 talks did not help stem the violence and some at the time doubted if Obasanjo was dealing with people who were legitimately capable of negotiating a cease-fire.

Spokesmen for the former head of state, who remains an influential figure in Nigerian politics, could not be reached to comment on the latest reported Boko Haram talks.

But the source told AFP that Obasanjo had voiced concern about Nigeria’s acceptance of foreign military personnel to help rescue the girls.

“He said he is worried that Nigeria’s prestige in Africa as a major continental power had been diminished” by President Goodluck Jonathan’s decision to bring in Western military help, including from the United States.

Mustapha Zanna, the lawyer who helped organize Obasanjo’s 2011 talks with Boko Haram, said he was at the former president’s home on Saturday.

But he declined to discuss whether the Chibok abductions were on the agenda. “I was there,” he told AFP, adding that Obasanjo was interested in helping orphans and vulnerable children in Nigeria’s embattled northeast and that possible charitable work was on the agenda.

Zanna had represented Yusuf’s family in a wrongful death lawsuit filed against the government following his death in police custody.

It was not clear if Obasanjo’s weekend meeting had been sanctioned by the government.