Magnetotransport study of MgB2 superconductor