Pakistan has expressed "shock and sorrow" over the inadvertent deaths of an American and an Italian hostage held by al-Qaida in a U.S. drone strike in January near the Afghan border.

The Ministry of Foreign Affairs extended Pakistan's condolences in a statement Friday, saying the deaths of hostages Warren Weinstein and Giovanni Lo Porto underline the "risk and unintended consequences of the use of this technology that Pakistan has been highlighting for a long time."

The ministry says Pakistan has "lost thousands of its citizens in the war on terror and it can fully understand this tragic loss and stands with the families of the two victims."

Pakistan is an ally of the United States in the war against terrorism but opposes the use of drones, saying it's counterproductive.