Egypt's railway head resigns after deadly crash