A British citizen was among 10 killed by a Taliban attack on a G4S compound in Afghanistan, the UK security firm has said.