About 100 armed police patrolled the street where the U.S. consulate and several other diplomatic missions are located, some searching cars. A Nigerian police bomb disposal squad brought its van to the area.
The closure came after "there was some kind of terrorist threat made," U.S. Maj. Holly Silkman, a spokeswoman for the Germany-based U.S. European Command, told reporters in Dakar, Senegal.
The threat was "called in," she said, offering no further details. She is in Dakar for a U.S.-led joint counterterrorism exercises in nine African countries.
Rodney Moore, a spokesman for Foreign Affairs Canada, said the Deputy High Commission in Lagos and the High Commission in the capital, Abuja, remained open. He added he was unsure as to the nature of the security threat.
The shutdown came Thursday afternoon and the American consulate remained closed Friday, U.S. Embassy officials in Abuja said.
The Nigerian government had begun "to investigate and address the situation, in collaboration with the United States authorities," Nigeria's Foreign Ministry said in a statement.
All diplomatic missions on the street were closed, including those of Italy, Germany, Britain and Russia.
The U.S. Embassy in Abuja was operating with only skeletal services, an embassy official said, speaking on condition of anonymity.
Earlier, U.S. Embassy spokesman Rudolph Stewart had confirmed a "security incident."
"It's an ongoing incident which is currently under investigation," he said by telephone from Abuja, without elaborating. He said Nigerian police were "working closely with us on this matter."
The Foreign Office in London said Britain shut its Deputy High Commission in Lagos following the closure of the nearby U.S. Consulate.
"We'll reassess over the weekend, but the plan is to reopen on Monday," said British Deputy High Commissioner Martin Shearman from Abuja.
Al-Qaida chief Osama Bin Laden purportedly marked Nigeria for liberation in a release posted on the Internet last year. The country of around 130 million is roughly evenly split between Christians and Muslims.
Political, ethnic and religious violence has claimed more than 10,000 lives since President Olusegun Obasanjo came to power in a 1999 election, but the country has not experienced any terrorist bombings.