A gunman who killed four people in Vienna posted a photo of himself on social media with two of the weapons he apparently used in the terror attack before he carried out his rampage.