MOSUL, Iraq (Reuters) - Iraqi forces clashed with Islamic State militants holding out in Mosul's Old City on Wednesday, more than 36 hours after Baghdad declared victory over the jihadists in what they had declared the de facto Iraqi capital of their "caliphate".
Prime Minister Haider al-Abadi's victory announcement signaled the biggest defeat for the hardline Sunni group since its lightning sweep through northern Iraq three years ago. But pockets of Mosul remain insecure and the city has been heavily damaged by nearly nine months of grueling urban combat.
About 900,000 people fled the fighting, with more than a third sheltered in camps outside Iraq's second largest city and the rest living with family and friends in other neighborhoods.
Civilian activity has quickly returned to much of Mosul and work is underway to repair damaged homes and infrastructure, something the United Nations estimates will initially cost more than $1 billion.
Newly trained local police are deployed in Mosul alongside the military, but authorities have not prepared a post-battle plan for governance and security in the city, officials say.
Iraqi forces exchanged gunfire with the militants in their final Mosul redoubt just before midnight and through the day on Wednesday, three residents living just across the Tigris River from the area told Reuters.
Army helicopters strafed the Old City and columns of smoke rose into the air, though it was unclear if these came from controlled explosions or bombs set off by Islamic State, the residents said by phone.
"We still live in an atmosphere of war despite the victory announcement two days ago," said Fahd Ghanim, 45. Another resident said the blasts shook the ground around half a kilometer away.
An Iraqi military official attributed the activity to "clearing operations".
"Daesh is hiding in different places," he said, using an acronym for Islamic State. "They disappear here and pop up there, then we target them."
Media access to the area has been heavily restricted since Abadi claimed victory on Monday, hailing "the collapse of the terrorist state".
Footage released by Islamic State news agency Amaq entitled "Fighting till the last gasp" and allegedly filmed in Mosul's Maydan district showed militants mixed in with civilians and unidentified corpses lying amid the rubble of an urban battlefield. Reuters could not authenticate the video.
Thousands of civilians have been killed during the Mosul offensive. Many were targeted by Islamic State but rights groups have also accused Iraqi forces and the U.S.-led coalition backing them of killings that violated international humanitarian law.
On Tuesday, Amnesty International cited a reliance on weapons it said had only crude targeting capabilities.
The coalition strongly rejected the charges, and Abadi, without mentioning Amnesty, said in a statement on Wednesday that rights groups should check their sources.
The Iraqi official declined to estimate the number of militants or civilians remaining in the Old City, but the top U.S. general in Iraq said on Tuesday that as many as a couple of hundred IS insurgents could still be in Mosul.
"There are bypassed holdouts. We haven't cleared every building in this city the size of Philadelphia. That's going to have to be done, and there are also hidden IEDs (improvised explosive devices)," Lieutenant General Stephen Townsend told reporters. "There are still going to be losses from the Iraqi security forces as they continue to secure Mosul."
The coalition said it had conducted three air strikes on IS in the Mosul area on Tuesday, targeting militants, machine-gun emplacements and rocket-propelled grenade systems.
South of the city, Iraqi security forces repelled an IS attack launched from western desert areas on the village of al-Jaran, a tribal fighter said.
Reinforcements also arrived to help government forces oust militants armed with machine guns and mortars from the village of Imam Gharbi, further to the south.
A policeman was killed and two others wounded in clashes on Wednesday, a security official said. IS has taken more than 75 percent of the village since storming it last week.
These are the kind of asymmetric, guerrilla-style strikes Islamic State is expected to concentrate on now as U.S.-backed Iraqi forces regain control over cities the group captured during its shock 2014 offensive.
Another attack on a border guard convoy in western Anbar province, near the Syrian border, killed two soldiers and wounded four on Tuesday, military sources said.
Separately, 28 Sunni Muslim civilians were kidnapped in the Iskandariya district south of Baghdad this week and 20 of them were found dead later, a police officer told Reuters.
Suspects detained by the authorities said they belonged to the Shi'ite Muslim Asaib Ahl al-Haq militia. A Baghdad-based spokesman for the group, whose fighters are taking part in the Shi'ite-led government's campaign against Islamic State, said he had no knowledge of the incident.
The government's victory in Mosul may rekindle revenge attacks and fresh violence between Sunnis and Shi'ites, a sectarian divide that tipped Iraq into civil war after the U.S.-led invasion that toppled Saddam Hussein in 2003.
(Reporting by Stephen Kalin; editing by Michael Georgy and Mark Heinrich)