Kerry’s visit was announced on Friday during an emotional speech in which Kerry warned of the dangers of Islamist extremists worldwide.
He had earlier described the attack on Baga as a “crime against humanity” while the United States has warned of the threat to Nigeria’s sovereignty posed by the militants.
“We have been working very, very closely with the government of Nigeria to address Boko Haram, and I can say very clearly that no country has done as much as we have to support Nigeria’s efforts.
“And we would hope that both candidates will be able to address the insecurity and address Nigeria’s response to Boko Haram,” the official said.
“This election in Nigeria is being watched by the entire continent and in fact by the entire world,” the official added.
Despite calls from some quarters that the general elections be postponed, the United States has pressed for the elections to go ahead.