This is the dramatic moment a journalist narrowly avoided death when an ISIS sniper’s bullet deflected off his GoPro camera.

Ammar Alwaely was filming in war-torn west Mosul, Iraq, when he was targeted by one of the terror group’s deadly marksmen.

But incredibly, the sniper’s shot bounced off his small camera – a gift from a colleague which he was wearing around his neck – smashing part of its exterior casing.

The barrier it created almost certainly stopped the bullet entering his body. Had the shot been aimed a few inches to the right it would have hit his heart, witnesses said.

The team he was travelling with immediately plunged to the ground to escape the sniper’s cross hairs and crawled behind a vehicle.

Mr Alwaely received treatment for minor cuts but was otherwise unharmed.

It comes as Iraqi forces said they had recaptured nearly 90 per cent of west Mosul from ISIS leaving the jihadists in the city on the ‘brink of total defeat’.

Government troops launched the massive operation to retake Mosul from ISIS nearly seven months ago, fighting their way to the jihadist-held stronghold, retaking its eastern side and then attacking the west.

Brigadier General Yahya Rasool, spokesman for Iraq’s Joint Operations Command, told a news conference in Baghdad that ISIS now controls just over 10 percent of west Mosul.

Both Staff Lieutenant General Abdulwahab al-Saadi, a senior Iraqi special forces commander, and Colonel John Dorrian, the spokesman for the US-led international coalition against ISIS, said that the end was near for jihadists in the city.

‘They have two options: die and go to hell or raise the white flag. They have no third option,’ Saadi told AFP at his headquarters in Mosul.

‘The enemy is completely surrounded,’ Dorrian told the news conference in Baghdad. ‘The enemy is on the brink of total defeat in Mosul.’

The drive to retake Mosul has been supported by a campaign of coalition air strikes in and around the city.

Dorrian said that coalition strikes have destroyed more than 300 explosives-rigged vehicles in Mosul, as well as over 200 ISIS tunnels and more than a thousand jihadist fighting positions.

ISIS now controls just a handful of neighbourhoods around the Old City, one of the country’s heritage jewels.

The area’s narrow streets and closely spaced buildings make it difficult for federal forces to take on the jihadists, requiring them to fight on foot instead of from vehicles as they have previously done.

Half a million people are currently displaced as a result of the battle for Mosul, and some 250,000 civilians are estimated to still be trapped inside the city’s west.

The number of those fleeing has been on the rise, with Thursday seeing around 20,000 people fleeing west Mosul, the Norwegian Refugee Council said, in the biggest single-day displacement since the operation began.

The presence of a large civilian population, which either chose not to leave or was prevented from doing so by ISIS, complicates any final assault to seal victory in Mosul.

While coalition air strikes have aided the advance of Iraqi forces, they have also reportedly caused hundreds of civilian casualties in the city.

Human shields have become a central feature of the vastly outnumbered jihadists’ defences, and ISIS has stopped at nothing to deter people from escaping the city, including killing people who seek to flee.

Trapped residents reached by AFP inside ISIS-held areas have also recently warned that hunger was starting to kill more people than the fighting.

In eastern Mosul, life returned to a semblance of normality fairly quickly after Iraqi forces drove the jihadists back neighbourhood by neighbourhood until the area was fully recaptured earlier this year.

ISIS overran large areas north and west of Baghdad in 2014, but Iraqi forces backed by US-led air strikes have since retaken much of the territory they lost to the jihadists.

But while the battle for Mosul is moving ever closer to its conclusion, the city’s recapture will not mark the end of the war against IS in Iraq.

Losing Mosul would remove from jihadists’ hands the largest Iraqi population centre still under ISIS control, and would be a major blow to their narrative that they have established a cross-border Islamic ‘state’.

But ISIS also holds other territory in Nineveh province, of which Mosul is the capital, as well as in Kirkuk and Anbar, while Syria’s Raqqa is also controlled by the jihadists.