PD: Off-duty officer leaves loaded gun in library bathroom