A worker died Friday after getting trapped inside a trash compactor at a factory north of Los Angeles.

City Fire Department spokesman Devin Gales said authorities were called to the factory in North Hills Friday afternoon. When they arrived, they found the man dead at the scene.

Gales said the unnamed victim was inside the trash compactor when it somehow turned on.

The cause of the accident is under investigation.