Kansas City, Mo., has sued a gun manufacturer and several weapons dealers, accusing them of illegally trafficking in firearms, the first such move by a major U.S. city in a decade.

“A city is filing a suit for the first time in 10 years against the gun industry,” Mayor Quinton Lucas, a Democrat, said at a press conference Tuesday, noting that most such suits target individuals rather than manufacturers.

The...