Militants with explosive vests are sitting among dozens of passengers taken hostage on a train in Pakistan, sources say, complicating rescue efforts.