NEW YORK — A deputy mayor arrested on a domestic violence charge in July would have been fired if he hadn’t offered to resign days later, Mayor Michael Bloomberg said Sunday, but he said he didn’t divulge the reason for the official’s departure to spare his family. “It became obvious that he couldn’t work for the city and I immediately made sure that he no longer did,” Bloomberg said in his first comments about Stephen Goldsmith.