The convoy was traveling along a remote mountain road when dozens of militants ambushed it , triggering a gunbattle that lasted for several hours .