Pakistan imposes curfew around mosque