Effect of Dephasing on Electron Transport in a Molecular Wire: Green's Function Approach