10 injured as fire burns through apartment building in Brooklyn