Firefighters and police rushed to the scene, rescuing over 40 residents who were trapped inside as thick smoke engulfed the upper floors.