Ivan Tomic's second-half penalty earned Partizan Belgrade a point at home to Villarreal CF that ensured both sides progressed to the last 32 of the UEFA Cup.