New York financial regulators on Wednesday said an insurance program for members of the National Rifle Association violates state law, and have imposed a $7 million fine on the broker who arranged it.

The NRA program allows policyholders to buy policies that cover legal costs in self-defense shootings. The “NRA Carry Guard” program is still being marketed, according to the program’s website, although sales in New York were suspended last fall shortly after the state’s Department of Financial Services launched its probe.

Maria T. Vullo, New York’s Financial Services Superintendent, said in a news release Wednesday that the investigation concluded that Carry Guard unlawfully provides liability insurance to gun owners for certain acts of intentional wrongdoing. New York state law prohibits that.

Ms. Vullo said Carry Guard is “an egregious violation of public policy designed to protect all citizens.”

The broker, Missouri-based Lockton Cos., noted the agreement and pledged to “continue to cooperate with the New York regulators to remediate any issues or concerns.”