One person was detained in connection with the midnight blasts on the train about 80 km (50 miles) north of New Delhi, Railways Minister Lalu Prasad Yadav was quoted as saying.