Dynamics of a piecewise smooth map with singularity