Kurdish officials foil attack on foreign diplomats in Iraq