When the gunman advanced toward the mosque, killing those in his path, Abdul Aziz didn't hide. Instead, he picked up the first thing he could find, a credit card machine, and ran outside screaming "Come here!"

Aziz, 48, is being hailed as a hero for preventing more deaths during Friday prayers at the Linwood mosque in Christchurch after leading the gunman in a cat-and-mouse chase before scaring him into speeding away in his car.

But Aziz, whose four sons and dozens of others remained in the mosque while he faced off with the gunman, said he thinks it's what anyone would have done.

The gunman killed 50 people after attacking two mosques in the deadliest mass shooting in New Zealand's modern history.

Death toll would have been higher, imam says

The gunman is believed to have killed 41 people at the Al Noor mosque before driving about five kilometres across town and attacking the Linwood mosque, where he killed seven more people. One person died later in a hospital.

White supremacist Brenton Tarrant, 28, has been charged with one count of murder in the slayings and a judge said Saturday that it was reasonable to assume more charges would follow.

Latef Alabi, the Linwood mosque's acting imam, said the death toll would have been far higher at the Linwood mosque if it wasn't for Aziz.

Alabi said he heard a voice outside the mosque at about 1:55 p.m. and stopped the prayer he was leading and peeked out the window. He saw a man in black military-style gear and a helmet holding a large gun, and assumed it was a police officer. Then he saw two bodies and heard the gunman yelling obscenities.

'He went after him'

"I realized this is something else. This is a killer," he said.

He yelled at the congregation of more than 80 to get down. They hesitated. A shot rang out, a window shattered and a body fell, and people began to realize it was for real.

A police officer stands by a collection of flowers near the Linwood Mosque in Christchurch. (Mark Baker/Associated Press)

"Then this brother came over. He went after him, and he managed to overpower him, and that's how we were saved," Alabi said, referring to Aziz. "Otherwise, if he managed to come into the mosque, then we would all probably be gone."

Aziz said as he ran outside screaming, he was hoping to distract the attacker. He said the gunman ran back to his car to get another gun, and Aziz hurled the credit card machine at him.

'I just got the gun and threw it'

He said he could hear his two youngest sons, aged 11 and 5, urging him to come back inside.

The gunman returned, firing. Aziz said he ran, weaving through cars parked in the driveway, which prevented the gunman from getting a clean shot. Then Aziz spotted a gun the gunman had abandoned and picked it up, pointed it and squeezed the trigger. It was empty.

He said the gunman ran back to the car for a second time, likely to grab yet another weapon.

"He gets into his car and I just got the gun and threw it on his window like an arrow and blasted his window," he said.

'That's why he got scared'

The windshield shattered: "That's why he got scared."

He said the gunman was cursing at him, yelling that he was going to kill them all. But he drove away and Aziz said he chased the car down the street to a red light, before it made a U-turn and sped away. Online videos indicate police officers managed to force the car from the road and drag out the suspect soon after.

Originally from Kabul, Afghanistan, Aziz said he left as a refugee when he was a boy and lived for more than 25 years in Australia before moving to New Zealand a couple of years ago.

"I've been to a lot of countries and this is one of the beautiful ones," he said. And, he always thought, a peaceful one as well.

Aziz said he didn't feel fear or much of anything when facing the gunman. It was like he was on autopilot. And he believes that Allah didn't think it was his time to die.