This is an archived article and the information in the article may be outdated. Please look at the time stamp on the story to see when it was last updated.

FARMINGTON, N.M. (AP) — The gunman who killed three people and wounded six others while roaming through his northwestern New Mexico neighborhood and apparently firing at random targets was an 18-year-old high school student, authorities said Tuesday.

The attack occurred Monday morning in Farmington, a city of about 50,000 people near the Four Corners, where New Mexico, Arizona, Utah and Colorado meet.

Witnesses and police say the gunman walked through a neighborhood a short drive from downtown Farmington spraying bullets at cars, homes and passersby until police arrived at the scene and shot and killed him.

San Juan County Sheriff Shane Ferrari said at a news conference Tuesday that four officers fired a total of 16 rounds at the gunman, including one of two officers who were wounded. Authorities identified the gunman Tuesday as Beau Wilson.

Mayor Nate Duckett said Tuesday both wounded law enforcement officers — a local Farmington officer and a state police officer — were treated and released from a hospital.

THIS IS A BREAKING NEWS UPDATE. AP’s earlier story follows below.

FARMINGTON, N.M. (AP) — The bullets that an 18-year-old high school student fired while meandering through his northwestern New Mexico neighborhood struck targets he apparently picked at random, including cars, homes and passersby. Police responded to the scene within minutes and swiftly killed the gunman, but not before he killed three people and wounded several others.

Authorities on Tuesday were trying to determine what led to Monday’s attack in Farmington, a city of about 50,000 that is a bedroom community for the oil and gas industry near the Four Corners, where New Mexico, Arizona, Utah and Colorado meet.

The attacker, whose name hadn’t been released as of Tuesday morning but who neighbors say was a student at Farmington High School, carried at least three weapons, including an AR-style rifle, according to police. Authorities also hadn’t identified the dead or six wounded, including two police officers who were treated at a hospital. Police were expected to release further details about the case at a Tuesday afternoon news conference.

“At this point it appears to be purely random, that there was no schools, no churches and no individuals targeted,” Police Chief Steve Hebbe said Monday night in a recorded video statement.

Hebbe said the “suspect randomly fired at whatever entered his head to shoot at,” as bullets pierced a half-dozen houses and several cars.

It was “honestly one of the most horrific and difficult days that Farmington has ever had as a community,” he said.

Former state Rep. James Strickler said among the three killed were an elderly mother and daughter who were both over the age of 70.

“Obviously this person is not of sound mind. It’s tragic, because these poor ladies were innocent,” Strickler said.

Officers began receiving reports of gunshots at about 10:57 a.m. and the first one arrived at the scene at 11:02 a.m., Hebbe said. Three minutes later, the gunman had been killed.

A Farmington officer was wounded and taken to a hospital where he was treated and released. A state police officer who was shot and drove himself to the hospital, where he remained Monday and was doing well, Hebbe said. That officer was reported to be in stable condition.

Joseph Robledo, a 32-year-old tree trimmer, said he rushed home after learning that his wife, Jolene, and their year-old daughter had sought shelter in the laundry room when gunshots rang out. A bullet went through his daughter’s window and room, without hitting anyone.

Jolene Robledo said she and her daughter had just finished breakfast when she heard “pop, pop, pop, pop,” which she first thought was a car backfiring. She said they were going to run out the back door until she heard a male voice that sounded right outside the home say the f-word, so she quietly shut the door and hid with her daughter between the washing machine and dryer.

“I mean it was crazy. I called my husband and he could hear the gunshots over the phone,” she said. “He was freaking out and I was like ‘don’t hang up, don’t hang up!’”

Joseph Robledo said he jumped a fence to get in through the back door. Out front, he found an older woman in the street who had been wounded while driving by. She appeared to have fallen out of her car, which kept rolling without her, he said.

“I went out to see because the lady was just lying in the road, and to figure just what the heck was going on,” Robledo said. He and others began to administer first aid.

Neighbors directed an arriving police officer toward the suspect.

“We were telling (the officer), ‘He’s down there.’ … The cop just went straight into action,” Robledo said.

Robledo’s own family car was perforated with bullets.

“We’ve been doing yard work all last week. I just thank God that nobody was outside in front,” he said. “Obviously, elderly people — he didn’t have no sympathy for them.”

Downtown Farmington, which is a short drive from the residential neighborhood where the attack happened, has undergone a transformation of sorts in recent years, with cafes and breweries cropping up alongside decades-old businesses that trade in Native American crafts from silver jewelry to wool weavings.

Nick Akins, a middle school teacher who lives in the area where the attack occurred, said it’s a great place to live, with a mix of homes, short-term rental apartments and churches.

“You never think it’s going to happen here, and all of a sudden, in a tiny little town, it comes here,” Akins said.

On Tuesday, orange circles of spray paint still marked the ground where police had collected evidence in the shootings. Authorities were using metal detectors to search the grass in front of one of the churches along the street where gunfire erupted.

As night approached Monday, dozens of people gathered at Hills Church, a few miles (kilometers) from the attack scene, to pray at the base of a tall metal cross. Lead pastor Matt Mizell talked about living in a “dark and broken world” but told the crowd there was still hope and asked God to provide them strength.

Politicians also weighed in about the attack.

Mayor Nate Duckett said in a statement that the shooting “has left us reeling in anguish and disbelief.”

Gov. Michelle Lujan Grisham said in a statement that she was praying for the families of those killed and that it “serves at yet another reminder of how gun violence destroys lives in our state and our country every single day.”

Rep. Teresa Leger Fernandez, a Democrat who represents the area in Congress, said in a Facebook post that “our beautiful Nuevo Mexico is not immune to the mass shootings that occur across the country — Every. Single. Day.”

“I praise the heroes who drove to danger to stop the violence. I pray for the quick recovery of the wounded and for the families of those we lost,” she said.

___

Ritter reported from Las Vegas, Nevada, and Lee from Santa Fe. Associated Press writer Terry Tang in Phoenix contributed.