ATTLEBORO, Mass. — Three firefighters were taken to the hospital for treatment of smoke inhalation and a resident had to be rescued from a second-floor window during a house fire early Thursday morning in Massachusetts, officials said.