BERLIN—German police say a Scottish man was killed east of Hamburg while trying to take a selfie photo with two friends in the middle of the autobahn.

Police told the DPA news agency Monday that the 22-year-old was hit by a car on the A24 highway by the Gudow rest area just before midnight on Sunday.

Read more: Thrill-seeking in the age of social media: DiManno

Police say he and his two friends had wanted to cross the autobahn to get to the rest area on the other side and stopped in the centre area to take photos when the man was hit.

The other two men, aged 21 and 22, were treated for shock.

Names were not released and further details were not available.

Read more about: