US condemns gun attack on former Pakistani prime minister