A policeman stands guard near a tram where the gunman opened fire.