KABUL, Afghanistan — Two American officers were shot dead inside the Interior Ministry building here on Saturday, and NATO responded by immediately pulling all its advisers out of Afghan ministries in Kabul, in a deepening of the crisis over the American military’s burning of Korans at a NATO military base.