A first order Hamilton-Jacobi equation with singularity and the evolution of level sets