It is the first violence from the Islamic radicals of Boko Haram in Abuja this year and highlights Nigeria's continuing security problems from the extremists.
The gunfight in the capital occurred as Nigerian officials were recovering bodies in Benisheik, in northern Nigeria, where 143 civilians were killed by suspected Boko Haram fighters. The killings in Benisheik took place on Tuesday and represent one of the highest death tolls in the Islamic uprising in northeast Nigeria.
Together the gunfight in the capital and the mass killings in the northeast challenge the Nigerian military's insistence that it is winning the war against the extremists since a state of emergency was declared on May 14.
The shooting in the capital broke out this morning when a security team was searching for hidden weapons and it was fired upon by members of Boko Haram, said a statement issued by Marilyn Ogar, Deputy Director of the Department of State Services.
More From This Section
Two arrested members of Boko Haram had led a security team in Abuja to a site near the residential compound for legislators where they said arms were buried, said Ogar.
Some people were injured but did not say there had been any deaths, she said. She said 12 people were arrested.
Boko Haram's violence occurs mostly in Nigeria's northern areas although there have been some serious incidents in the capital.
In August 2011 a Boko Haram suicide car bomb exploded at the United Nations offices in Abuja, killing 24 people. In April 2012 the Abuja office of the newspaper, This Day, was hit by a car bomb and two people were killed.
Two soldiers and three police officers also were killed, according to a soldier who spoke to The Associated Press on condition of anonymity because he was not authorised to speak to the press.