A man at the door to the Al Noor mosque on Deans Avenue called out “hello, brother,” just before the approaching killer opened fire with a semiautomatic rifle.
The wounded tried to crawl away or lie still, while others ran or crouched behind the dead, but the gunman kept pulling the trigger.
He shot fleeing women and girls, and pumped bullet after bullet into piles of motionless men and boys in a house of worship.
The man accused of carrying out the worst mass murder in New Zealand’s modern history, one that left 49 people dead and more than 40 others wounded at two mosques in Christ-church, was identified in court documents on Saturday as Brenton Harrison Tarrant, 28. The suspect, who officials said is an Australian citizen, was charged with one count of murder, and more were expected to come.
It remained unclear whether there was just one gunman. Three other people were detained by the police, but one was released hours later.
The horror was designed specifically for an era that has married social media and racism — a massacre apparently motivated by white extremist hatred, streamed live on Facebook, and calculated to go viral. And it shattered a veneer of civility and security in one of the safest and most highly developed countries in the world.
‘‘It is clear that this can now only be described as a terrorist attack,’’ Prime Minister Jacinda Ardern said, noting that many of the victims could be migrants or refugees.
She said the attack reflected ‘‘extremist views that have absolutely no place in New Zealand.’’
Within moments after the shootings began, terror and chaos gripped the people gathered at the Al Noor mosque for Friday prayers, as they ran, screamed, and tried to climb the walls around the building. Parents tried to shield their children, others ducked behind or under parked cars, and at least one nearby resident opened her home to shelter people fleeing the mayhem.
The Facebook video, shot from the killer’s helmet-mounted camera, and a 74-page statement that the authorities said was written by the gunman, point to an array of possible role models, from racist mass murderers to Oswald Mosley, the 20th-century British fascist.
Standard white supremacist and far-right nationalist tropes, like fears of a “white genocide,” are sprinkled throughout the statement. There are also elements of a self-flattering reach for larger meaning: references to centuries-ago battles between Christians and Muslims are scrawled on his guns, and on the video he refers to his slaughter of unarmed people as “the firefight.”
President Trump on Friday described the attack as “a horrible disgraceful thing, horrible act.” But when asked if he saw white nationalism as a rising threat around the world, he said: “I don’t really. I think it’s a small group of people that have very, very serious problems, I guess.”
Many Western leaders denounced the attack as an act of terrorism, and made a point of stating their support for Muslims.
“Through terror attacks that have taken place on UK soil we know only too well the pain that such horrifying attacks can cause,” Prime Minister Theresa May of Britain said. “As New Zealand has stood by us so we stand shoulder to shoulder with them, and with Muslims in New Zealand, here in the UK, and around the world.”
Some leaders of Muslim countries had a more pointed take. On Twitter, President Recep Tayyip Erdogan of Turkey called the attack “the latest example of rising racism and Islamophobia.”
Driving his white SUV to the Deans Avenue mosque on Friday afternoon, the gunman played aloud a propaganda song that pays tribute to Radovan Karadzic, the former Bosnian Serb leader who was convicted of genocide and war crimes.
Forty-one of the people who died were killed at that mosque. Seven others were killed at the Linwood mosque, about 3 miles away, and one died at Christchurch Hospital, which lies between the two.
Ardern, New Zealand’s prime minister, said Saturday that a total of five firearms, including two semiautomatic weapons, were used in the attacks. New Zealand has fairly lax guns laws, but little gun violence.
“Our gun laws will change; now is the time,” Ardern said, though she did not say what that legislation would look like. “People will be seeking change, and I am committed to that.”
Two homemade explosives were found in the suspect’s car, police have said. The attack put the city of almost 400,000 people on lockdown for hours, as police searched for more suspects, accomplices or bombs.
Syed Mazharuddin told the New Zealand Herald that he was in the mosque on Linwood Avenue, and that “there were elderly people sitting there praying and he just started shooting at them.”
Speaking to reporters Friday, a shaken Mohammad Nazir haltingly tried to describe what he had seen inside the Deans Avenue mosque, where he said there were “lots of people” lying on the blood-soaked green carpet.
“I just heard ’‘Help! Help!’ ” he said.
Mulki Abdiwahab, an 18-year-old university student, was with her mother in the women’s prayer room at the Deans Avenue mosque when the gunfire began.
“My mom grabbed my hand and then we just ran outside and everyone was in chaos, just running for their lives,” she said.
The gunman’s video shows him reloading repeatedly, snapping new ammunition magazines into his assault rifle. Then he returned to his vehicle, got another gun, went back into the building, and resumed shooting.
When he left for good, he fired down the sidewalk in both directions, and down the alleyway where he had parked. He walked up to a wounded woman dressed in black who lay on the pavement crying “help me, help me,” and shot her twice more.
He left about six minutes after he had arrived.
As he began to drive away, he fired into parked cars with a pump-action shotgun before speeding off.
Officials did not make clear whether the Linwood Avenue attack took place before or after the Deans Avenue massacre, or if the same person committed both.
The gunman allegedly fled the second mosque to his car and left the scene. Shortly after, police patrol cars forced a Subaru onto the curb of a divided street. Officers dragged the suspect from the front seat, apparently uninjured.
Yama al Nabi was running late to meet his father at the Deans Avenue mosque, when he came on the nightmarish scene of wailing and bleeding people.
He asked survivors about his father, Dawoud Nabi, 65, a native of Afghanistan who had lived New Zealand since 1977.
“Someone said he jumped the fence and said he’s safe,” he told The New York Times. “Then I waited and waited and my daughter called and said he’s dead.”
He had gone to the courthouse where the accused gunman would appear. “Just want to see his face,” he said.
Abdulrahman Hashi, 60, a preacher at Dar Al Hijrah Mosque in Minneapolis, told The Washington Post that his 4-year-old nephew was among those killed.
His brother-in-law Adan Ibrahin Dirie, who was in the hospital with gunshot wounds, had been worshiping in Christchurch that morning with his five children when the gunman opened fire. Four of his children escaped unharmed, but the youngest, Abdullahi, was killed.
The family had fled Somalia in the mid-1990s as refugees.
‘‘You cannot imagine how I feel,’’ he said. ‘‘He was the youngest in the family.’’Material from the Associated Press and the Washington Post was used in this report.