"The people and the government of Pakistan express their deep condolences on the loss of precious lives, resulting from a fire in the temple," Foreign Office Spokesman Nafees Zakaria said.
"Our sympathies are with the bereaved families. We wish early recovery to all injured people," Zakaria was quoted as saying by Radio Pakistan.
More than 100 people have died and nearly 300 injured in the major explosion and fire at the Puttingal Devi Temple complex near Kollam in Kerala.
The blaze erupted when sparks emanating from the fireworks display ignited a store room filled with crackers and pyrotechnic material.