(CNN) -- Two law enforcement officers died and two were injured in a series of apparently linked shootings early Thursday in LaPlace, Louisiana, authorities said.
The first shooting happened in a parking lot at a steel plant, Sheriff Mike Tregre said. The second happened when officers went to a nearby trailer park to investigate the first shooting and were ambushed by a man armed with what the sheriff described as an assault rifle, he said.
In addition to the two wounded law enforcement officers, some of the five people taken into custody also suffered gunshot wounds, Tregre said.
Investigators were still sorting out what role those detained may have had in the shootings, Tregre said.
Although officers are still working what Tregre described as a "semi-hot scene," he said investigators do not believe anyone else involved in the shooting is at large.
Tregre identified the dead as Deputies Brandon Neilsen, 34, and Jeremy Triche, 28.
The shootings unfolded around 5 a.m. in the parking lot at the Bayout Steel Plant in LaPlace, when a man opened fire on a law enforcement officer working a traffic detail in the lot.
Despite being shot multiple times, the officer was able to describe the suspect to dispatchers, Tregre said. That description, along with a civilian report of a speeding car, led responding officers to a nearby trailer park, he said.
As the deputies were questioning two people, a man came outside and "ambushed my two officers," Tregre said.
Authorities were investigating whether the same weapon was used at both shooting sites, Tregre said.
Louisiana State Police have taken over the investigation, he said.