The eight officers were inside the Whiplash nightclub at Wyman and Summer streets trying to quell a fight when gunshots rang out shortly before 1 a.m. Sunday.

As officers rushed to a parking lot outside, people in a crowd of about 350 began running in all directions in confusion, said Executive Officer Robert Devine.

Officer John Lydstone found the 25-year-old man laying on pavement and suffering from gunshot wounds, Devine said. A 16-year-old male would later walk into a Boston hospital with a gunshot wound to his leg.

“It was complete chaos,” Devine said Sunday. “It was a chaotic scene that our officers had to get under control very quickly.”

Lydstone began administering medical help to the unidentified 25-year-old until paramedics arrived. A MedFlight helicopter transported the victim to Massachusetts General Hospital. He was in serious condition on Sunday afternoon, Devine said.

The condition of the second victim, a 16-year-old male, was not known. Police would not release the names or hometowns of the victims on Sunday. Police also would not discuss the number of shell casings found at the scene.

No arrests had been made by 8 p.m. Sunday. Police said they were actively working to identify suspects. Stoughton detectives, state police and Boston Police are processing evidence found at the scene, police said.

After gunshots rang out, Devine said additional officers from Stoughton, Randolph, Canton, and Sharon and state police troopers responded to help quell the crowd.

The club, located near the commuter rail in downtown Stoughton, has been known as a “trouble spot,” Devine said. The weekend before the shootings, police arrested six people during a melee there, he said.

“The crowds that we’ve had at this club have generally been defiant,” Devine said. “When we’re trying to move (patrons) along, they’re refusing.”

Devine called the suspects in the shootings “brazen.”

“The fact that they would be that brazen, with marked police cruisers right there (and start shooting) is startling,” he said.

He said officials would be looking into license violations, since the violence seen Saturday is a danger to the public and also to officers.

“I don’t want to see my cops get hurt because of the crowds,” Devine said.

Saturday’s shootings followed a melee at another Stoughton club that required heavy police response in January.

Four people, including a 14-year-old boy, were charged after the melee that broke out during a baby shower celebration at the Club Luis de Camoes at 76 Porter St. on Jan. 12. About 30 officers from area departments responded to help quell an unruly crowd of 200 people.