The city manager of Virginia Beach resigned Wednesday following complaints about how he handled the aftermath of the mass shooting that rocked his city and left 12 people dead.

“A lot of performance problems led to this day,” said Kevin Martingayle, a lawyer representing the husband of one of the victims. “If he’d consistently communicated and acted in a gracious manner, he’d probably still be city manager.”

Martingayle said his client, Jason Nixon, feels that it’s “very good news” that Dave Hansen stepped down. Nixon’s wife, Kate, was killed in the shooting.

Hansen was a city employee for 13 years, three of which he served as city manager.

Earlier this month, members of the Virginia Beach Interdenominational Ministers Conference called for his resignation. They claimed Hansen’s leadership helped create a “toxic work environment” that contributed to the shooting.

On May 31, disgruntled city employee DeWayne Craddock opened fire in the city’s municipal building — just hours after he quit his job as a civil engineer at the Virginia Beach Department of Public Utilities.

Not everybody was critical of Hansen’s shooting response.

“I could not imagine anyone doing a better job,” said Vice Mayor James Wood.

Hansen, in his resignation letter, said: “Our most recent tragedy will take all our energy, strength and patience so we can walk the long path of recovery ahead.”

With Post wires