Take the wheel out. Prise the pads apart in the caliper with something stiff and non metallic. (ok I always use a screwdriver but you shouldn’t) then put the wheel back in and pump the brake lever to reset the pads. It’s possible you caught the lever with the wheel out.
Failing that you may have to realign the caliper by undoing the bolts and centering the caliper on the disk.
Or your disk might be bent. Depends what’s rubbing. 2 adjustable spanners to tweak the disk where it’s bent.
My avid juicy’s need zeroing every time you take either wheel out. Fairly frustrating when you’re in a hurry, but once yr used to it, the job becomes second nature. If you have the same brakes go on the avid website. Once you find a 5mm Allen key it’s fairly easy to do.