Authorities said the blaze in the town of Puchong, on the outskirts of the capital Kuala Lumpur, had been extinguished by midafternoon.