Paramagnetic behaviour of KO2 is due to the fact that unpaired electron is present in:
KO2 is Potassium superoxide with O atom existing as O−2
By molecular orbital explanation,
Electronic configuration of O−2 is σ(1s2)σ∗(1s2)σ(2s2)σ∗(2s2)σ(2p2x)π(2p2y)=π(2p2z)
π∗(2p2y)=π∗(2p1z)
So, it has got an unpaired electron in π∗2pz orbital which is responsible for its paramagnetic behavior.