LAFAYETTE -- Residents were asked to stay indoors and turn off all flames as crews worked to fix a high pressure gas line that ruptured Tuesday afternoon.

According to Contra Costa County Sheriff's Office spokesman Jimmy Lee, a resident working with a backhoe on the 1300 block of Pleasant Hill Road around 2:50 ruptured the three-quarter inch line, and soon a gas-like odor wafted in the air.

Lafayette police arrived shortly there after and went door-to-door asking residents along Pleasant Hill and Quandt roads as well as along Candy Court to close their windows and doors and stay inside until further notice.

PG&E crews arrived around 3:15 p.m. and at 4:20 p.m., the line was sealed, said PG&E spokeswoman Tamar Sarkissian. Temporary traffic delays were reported in the area when officers shut down the northbound, number 2 lane on Pleasant Hill Road around 3 p.m.

The road was reopened shortly before 5 p.m. and residents have since been able to resume normal activity.

Contact Katie Nelson at knelson@bayareanewsgroup.com and follow her at Twitter.com/katienelson210.