US warns Pak of action against terror groups