Man hurls shoes at judge in Pakistan