Long Beach police responded to a home at about 4 a.m. Sunday after receiving a call of domestic violence between Tuggle and his domestic partner.
Police determined no crime had been committed and left the residence, but were called back an hour later.
Police said when they returned, Tuggle ambushed officers and opened fire on them in the area of Chestnut Avenue and West 11th Street.
"Without provocation, they were shot upon by this male suspect," said LBPD Cmdr. Laura Farinella.
Tuggle ran from the scene, and responding officers gave chase. The shootout continued for several blocks until Tuggle was shot and killed in the area of West Anaheim Street and Cedar Avenue.
"We could hear the gun shots in the background," said Stephanie Hinton, a relative of the suspect.
Two handguns and a shotgun were recovered on the suspect, who worked as a Long Beach sanitation worker.
No officers were hurt in the incident.
Tuggle's friends told Eyewitness News he was a friendly man and a good worker, and they had no idea why he would attack police officers.
"James was a very nice coworker," said D'Angelo Wilson, a coworker. "He was very friendly, very respectful."