PM grieved over loss of lives in train incident