HARTFORD, Conn. (AP) — Citing a U.S. Supreme Court decision earlier this year, gun rights groups and firearms owners have launched another attempt to overturn Connecticut’s ban on certain semiautomatic rifles that was enacted in response to the Sandy Hook Elementary School shooting.

A new lawsuit was filed Thursday in federal court by three gun owners, the Connecticut Citizens Defense League and the Second Amendment Foundation. They are seeking to overturn the state prohibition on what they call “modern sporting arms” such as AR-15-style rifles like the one used to kill 20 first-graders and six educators at the Newtown school in December 2012.

“We all deserve to live in safe communities, but denying ownership of the most commonly owned firearms in the country is not the way to achieve it,” Holly Sullivan, president of the Connecticut Citizens Defense League, said in a statement. “The recent U.S. Supreme Court decision … has opened the door to this challenge, and we believe Connecticut will be hard pressed to prove its statutes are constitutional.”

State officials vowed to defend the 2013 gun laws.

“The fact is, is that Connecticut’s gun laws are constitutional,” state Attorney General William Tong told News 8. “I know because I helped to write them, and I’ve defended them. They have survived constitutional challenges over and over and over again, and we’re gonna win again. These are extremists. They don’t want to hear from me about the law. They don’t want to even read the text of the Supreme Court’s decision in Bruen, which said Connecticut does it right. They just said it, and they said before in two other decisions, Heller and McDonald, that states have the right and prerogative to enact common sense gun laws to keep people safe.”

In June, the Supreme Court broadly expanded gun rights in a 6-3 ruling by the conservative majority that overturned a New York law restricting carrying guns in public and affected a half-dozen other states with similar laws. After the ruling, New York and other states have moved to pass new gun restrictions that comply with the decision.

Gun rights groups had attempted to overturn Connecticut’s ban on assault weapons before. But in 2016, the high court, with fewer conservative justices, rejected challenges to assault weapons bans passed in Connecticut and New York in response to the Sandy Hook shooting.

The plaintiffs in the new challenge include a female victim of domestic violence and two former state correctional officers who want to possess “modern sporting rifles for defensive purposes,” the lawsuit says. Their lawyers include two Republican state representatives, Craig Fishbein of Wallingford and Doug Dubitsky of Chaplin.

They say Connecticut’s gun laws violate Second Amendment gun rights as well as 14th Amendment due process rights.

“When the attorney general says it’s constitutional, I know because I wrote it, he wrote it under a different set of circumstances, and now that we have clarification on what the real standard is, I think it’s going to be very apparent that the law in Connecticut banning commonly used and commonly possessed firearms is unconstitutional,” Dubitsky told News 8.

The lawsuit was filed against Democratic Gov. Ned Lamont, public safety Commissioner James Rovella and several state prosecutors.

Lamont said Friday the state gun law was passed to prevent “needless tragedy,” had bipartisan support when it was approved and is overwhelmingly supported by state residents.

“We will vigorously defend these commonsense laws that are seeking to reduce violent crime and mass shootings,” he said in a statement. “When it comes to the safety of the people of our state, we must stand up and do what is right.”

The 2013 state law added more than 100 firearms, including the rifle used in the school shooting, to the state’s assault weapons ban and prohibited large-capacity ammunition magazines.

The Newtown shooter, Adam Lanza, fired more than 150 shots within five minutes, using a Bushmaster XM15-E2S rifle and 30-round magazines. The rifle was legally owned by his mother, whom he killed at their Newtown home before going to the school. Lanza killed himself with a handgun at the school as police arrived.

The law also created what officials called the nation’s first dangerous weapon offender registry as well as eligibility rules for buying ammunition.

“These cases are going on all over the country, and these types of bans are falling all over the country because it’s clear now that they are unconstitutional,” Dubitsky said.