Pakistan lashed out at the U.S. for accusing the country's most powerful intelligence agency of supporting extremist attacks against American targets in Afghanistan — the most serious allegations against Islamabad since the beginning of the Afghan war.