You are not stuck. Click on the bridge just above the pipe, and Diggy will run around to get the pipe and move it onto the bridge. Then run back to the other end of the pipe and push it over the bridge and carry on moving around to get at the pipe from whichever position you can.