Walmart Distribution Center in Raymond

The entrance to the Walmart Distribution Center in Raymond remained blocked Thursday afternoon following a fatal accident involving a worker earlier in the day.

A former Raymond police officer who had been working at the Walmart Distribution Center since retiring from the police department died Thursday when he became pinned between two tractor-trailers.

James Tomilson, 54, of Deerfield, was killed in the accident, which happened around 10 a.m. at the facility at 42 Freetown Road.

Police Chief Michael Labell said it appears that Tomilson was inspecting a trailer when another tractor-trailer truck behind him “lunged forward” and left him pinned between the two vehicles.

Labell said investigators from the state police inspected the truck and ruled out a mechanical problem.

The cause of the accident remains under investigation, but Labell said that “all indication at this point is that this was just an accidental death.”

Tomilson joined the Raymond police force in 1999. He retired in 2012. He worked for the Deerfield Police Department before he joined Raymond, Labell said.

“He was one of the most honest and caring individuals I had ever met or worked with in my life,” said Labell, who worked with Tomilson for 13 years.

Several other current members of the police department also worked with Tomilson. Labell said the police chaplain went to the scene and then held a debriefing with officers back at the station.

Raymond police, fire and ambulance responded, along with state police and the state Medical Examiner’s Office.

Tractor-trailers lined up along the side of Route 107 while the entrance to the distribution center was closed following the accident. The entrance remained blocked by Walmart employees around mid-afternoon.

“We are heartbroken over the loss of our associate, James,” a Walmart representative said in a statement. “We’re focused on supporting his family and our associates during this difficult time and are assisting authorities in their investigation however we can.”