The driver reportedly lost control over the wheel and rammed the truck into a level-crossing gate