Militants attack NATO supply terminal in northwest Pakistan