The officials said earlier they believed the kidnappers' motive was ransom, not politics, but they declined to say if ransom had been demanded.
Foreign Office Spokesman Jalil Abbas Jilani said Javed would be returning home shortly. "As a result of efforts made by the government of Pakistan, he has been released," said Jilani. "He is absolutely fine and will be returning in a day or two."
Jilani declined to give any more details. Malik Javed's son, Bilal, said the family was delighted: "I'm so happy, I don't know what to do," he told Reuters.
"The Prime Minister called us. He said father has reached the Pakistani embassy in Baghdad safely," Bilal said later.
A day after Javed went missing, a man called the Pakistani embassy in Baghdad saying he belonged to a group called Omar bin Khattab and it was holding Javed.