Fire rips through three decker; four injured