The man told a 911 operator that his wife was in distress. He wanted a mental health officer sent to their south Austin apartment to help calm things down.

Austin police changed their tactics when the man warned that the situation had grown perilous: His wife, he said, had picked up a gun.

Instead of the mental health officer responding to the Club at Summer Valley apartments, two other officers crept closer to building 744. They put cover between themselves and the distraught woman’s apartment, cautious as they tried to make contact.

The woman, identified Monday as Micah Dsheigh Jester, found the police first, emerging suddenly from a breezeway — her arm extended, a gun pointed at officers.

Police later said that it was a replica semiautomatic BB gun.

But the responding officers didn’t know that during the tense and, ultimately, fatal encounter.

“She extended the weapon toward the officers and said ‘Shoot me. Shoot me. Kill me,’ ” Assistant Chief Troy Gay told reporters early Sunday.

“The officers were giving her verbal commands the whole time telling her to drop the weapon.”

Instead, Gay said, she edged closer to them.

Both officers fired, Gay said.

Jester fell to the sidewalk, wounded. But she still had the BB gun.

“The female was still moving,” Gay said. “The weapon was still underneath her. And she . . . was still a threat.”

Other officers had arrived by that point, and the group tried to disarm Jester without getting shot, Gay said. On the ground, she continued to ask officers to kill her.

“As they were approaching her to disarm her, the female had the weapon in her hand,” Gay said.

An officer fired several more shots.

Jester, 26, was pronounced dead at a hospital a short time later.

“Our hearts go out to everyone involved in this tragic incident,” Austin police said in a statement Monday.

Police identified the officers involved in the shooting as Richard Smith and Deborah Lindeman, a mental health officer. They have been placed on paid administrative leave during the investigation, per departmental policy.

“It was not a justified kill,” Jason Meeley, the boyfriend of Jester’s mother, told the Austin American-Statesman. “They could have used a stun gun on her. They could have Tasered her, they could have done a lot of stuff.”

Meeley said Jester had two daughters — a 4-year-old and a toddler who hasn’t yet turned 1, according to the American-Statesman.

The department hasn’t said what, if any, mental illness Jester had.

But police say her husband requested an officer specially trained to deal with people having mental health issues.

Several neighbors heard parts of the fatal confrontation, according to ABC affiliate KVUE. Sebastian Cardena told the station he had just gotten home from celebrating his 21st birthday. He heard “a loud scream and five pops and then silence and three more pops.”

Zorado Plaza, who has lived in the apartment complex for six years, said the gunfire woke him.

“I just heard gunshots. I woke up from my heavy sleep and I’m like, did I hear that correctly? And then I heard it again,” he told KVUE.

Austin police have been scrutinized after a recent study showed that officers there are more likely to use force on black suspects than Hispanics or whites, according USA Today. The report, which analyzed data from 2014 and 2015, also showed that black motorists were more likely to be searched than whites or Hispanics.

Police shootings in general have been under the microscope amid a national debate about whether officers are too quick to use force, especially against blacks.

An ongoing Washington Post analysis found that police officers nationwide have fatally shot civilians at least 762 times this year — and that about a quarter of those killed were mentally ill or experiencing an emotional crisis. Of the fatal shootings in 2016, 179 involved mental illness and 40 of those victims were explicitly suicidal. Ratios were similar last year, according to a 2015 Post analysis.

The project found that officers often lack the training to approach mentally unstable people.

According to the investigation, severe budget cuts for psychiatric services have created a hole that local police departments are being asked to fill. Departments have struggled to meet the challenge.

Although recruits typically spend nearly 60 hours learning to handle a gun, according to a study by the Police Executive Research Forum, they receive only eight hours of training to deescalate tense situations and eight hours learning strategies for handling the mentally ill.

“We as a society need to put more money and funding into treating the mentally ill. We need to work with these people . . . before they end in tragedy,” Mike Carter, the police chief in Sand Springs, Okla., previously told The Washington Post.

Read more:

A 7-year-old told her bus driver she couldn’t wake her parents. Police found them dead at home.

Charlotte police won’t make shooting video public; chief says footage is not ‘definitive’

The Charlotte police shooting that hasn’t gone away