At least 27 militants have been killed as forces attempt to free hostages who were seized when the train was ambushed on Tuesday while passing through a tunnel in the rugged Bolan district.