A security guard is taking a selfie with a smartphone while standing in front of a gate.