Twenty-one passengers were killed after a train in Pakistan was attacked and hundreds were taken hostage on Tuesday, according to the Pakistani military.