A derailed carriage of a Dhaka-bound Panchagarh Express train was recovered and put back onto the tracks, allowing operations to resume
They were taken into custody from Chunkutia area of South Keraniganj on Saturday evening, ASP Md Abul Kalam Azad, acting company commander of RAB-10 Keraniganj camp, said in a statement.
The men have been identified as Md Ruman Mia, 20, and Md Alamin, 22.
A gun, a toy pistol, a RAB jacket, a pair of handcuffs, two mobile phones and Tk 6,500 cash were recovered from the spot.
Legal measures will be taken against the detainees, it said.