The mishap took place between Nilagiri Road and Balasore stations when the boys were returning home after playing near the railway track last evening, the GRP said.
Two of the boys have been identified as Ranjan Sing (7), Dinesh Sing (8) of Lakhabindhagaon village, they said.
All of them were students of nearby Bangara U.P. School.