He was diagnosed with a urinary tract infection, his office said