Interior minister Hamed Bakayoko says attack "organised, ordered, and executed from Ghanaian territory".
The Ivory Coast has closed its border with Ghana after at least 10 people were killed in attacks on its army and police launched from Ghanaian territory, the country's interior minister has said.
"Land, air and sea borders are closed until further notice," Hamed Bakayoko told the Reuters news agency on Friday.
"This was organised, ordered, and executed from Ghanaian territory, and the Ghanaian authorities know who these people are," he said.
Gunfire erupted at 3am local time (03:00 GMT) on Friday in the town of Noe, home to a border crossing between Ivory Coast and eastern neighbour Ghana.
The attack on the border came hours after gunmen tried to seize weapons from two police stations and a gendarmerie in the Port Bouet and Vridi neighbourhoods in commercial capital, Abidjan.
"A bystander was killed by a stray bullet. A passing soldier also lost his life. And one of the attackers was killed ... All the weapons they took have been recovered," Paul Koffi Koffi, the defence minister, told journalists.
The attacks were the first since August, when near-daily raids on security forces revived fears of renewed instability a year after a brief civil war killed more than 3,000 people.
"There was an attempted attack against the army deployed at the border," Guillaume Soro, president of Ivory Coast's parliament, wrote on Twitter.
Seven attackers were killed by Ivorian forces during a gunbattle that lasted an hour-and-a-half, said a senior army officer who asked not to be named. One government soldier was also wounded in the clash.
"The soldiers and police explained that they were attacked by fighters who wanted to seize the border post," said one town resident, who asked not to be named.
"Lots of soldiers have arrived to reinforce. They are patrolling all along the border and searching along the river separating Ivory Coast and Ghana," he added.
The government has accused supporters of former president Laurent Gbagbo of organising last month's raids.
Accusations that Gbagbo allies living in exile in Ghana were involved in planning the violence led the country's President John Dramani Mahama to declare that Ghanaian territory would not be used as a base for operations to destabilise its neighbour.
Earlier this week Ghanaian police said they had arrested three men, including a former Ivorian soldier, for trying to buy arms for a planned coup in Ivory Coast.
The former president's political party, several of whose leading members were arrested last month, has denied involvement in the violence and accuses the government of using the violence as a pretext for a crackdown on the opposition.
Gbagbo was captured during last year's war, which broke out after he refused to accept defeat in a presidential election in late 2010.
He is awaiting trial before the International Criminal Court, charged with crimes against humanity.
Most of his top political and military allies are either in jail in Ivory Coast or in exile, mainly in west African countries.