A mayor backing Polish opposition elections in parliament has been targeted by special services with Pegasus spyware.