A compound represented by formula (I) or formula (II):wherein, A represents an oxygen atom or a sulfur atom; X1 represents a halogeno group, a substituted or unsubstituted C1-6 alkyl group and so on; m represents the number of X1 and is any integer of 0 to 5; any two of X1 may be bound together to form a bivalent hydrocarbon group; Y represents a single bond or a substituted or unsubstituted C2-6 alkenylene group; Q1 represents a substituted or unsubstituted C6-10 arylene group or a substituted or unsubstituted 6- to 10-membered heteroarylene group; Q2 represents a substituted or unsubstituted C6-10 aryl group or a substituted or unsubstituted 5- to 6-membered heteroaryl group; Zq- represents a counter ion; and q represents a valence of the counter ion and is 1 or 2.