UPDATE: The truck driver remains in critical condition.

Shepard Road was closed to traffic during rush hour Thursday evening while St. Paul firefighters rescued a truck driver who crashed into the railroad bridge at Robert Street.

The truck rolled when it hit the bridge about 4 p.m., trapping the driver in the cab, said Fire Marshal Steve Zaccard.

Firefighters spent about an hour extricating the the driver from the wreckage, and treated him at the scene for injuries not believed to be life-threatening, said Steve Linders, a spokesman with the St. Paul Police Department.

Truck struck railroad bridge on Shepard W of Jackson. Firefighters just extricated injured driver. Shepard remains blocked. pic.twitter.com/JQEPvGfI0C — Saint Paul Fire Dept (@StPaulFireDept) November 17, 2016

Firefighters had to work carefully to remove the driver from the wreckage in order to protect the structural integrity of the bridge, Linders said.

Police closed Shepard Road shortly after the crash and it reopened to traffic about 7:20 p.m.