BOISE -- A Nampa man was killed Friday morning when his motorhome caught fire on westbound Interstate 84 near Mountain Home.

Idaho State Police say the fire happened at about 8:45 a.m. near milepost 96.

According to Elmore County Sheriff's Office Chief Deputy Mike Barclay, 68-year-old Amado Martinez Perez was driving west when his motorhome ran out of gas. The driver pulled over onto the shoulder, and tried to get the vehicle started again by pouring gasoline into the carburetor.

But after Perez climbed back into the cab of the motorhome and started the engine, the gasoline ignited, trapping him inside, sheriff's officials say.

Perez and his friend, who had been following the motorhome in another vehicle, tried to get the door of the motorhome open, but could not. Sheriff's officials say Perez and his friend then both tried unsuccessfully to break a window in the rear of the motorhome.

A passing truck driver and an Idaho State Police trooper also attempted to rescue Perez from the burning vehicle, but could not get him out.

Perez died at the scene.

"It's just a tragic day for everybody when we lose someone on the interstate," Barclay said. "It's hard for everybody."

Westbound I-84 was reduced to one lane in the area for about two hours, with Elmore County deputies using a pilot car to guide traffic through. Both lanes were reopened by 10:40 a.m.

The incident remains under investigation.