Militants attack train