In 2003 Pakistan’s Dawb newspaper published A journey into the past by Amer Sial, describing the Pakistan Railways heritage museum at Golra Sharif near Islamabad (there is a similar document here). The article says A few historic pictures hanging on the outside walls of the platform included one of Afghan King Amir Abdur Rehman at the Rawalpindi Railway Station in 1886. Another one shows the passing of a steam train through the Khyber Pass in the late nineteenth century.
While I haven’t been to check(!), it seems unlikely there is a C19th photo of a train through the Khyber Pass, as the metre-gauge railway along the Kabul River was extant c.1905-1909, and the more famous broad-gauge Khyber Pass railway opened on 3 November 1925.
I’ve never seen any pictures of the short-lived metre-gauge line – if anyone has one, or knows where I might find one, please let me know.