Firefighters rescue dog from icy river in Massachusetts