Two gunmen were reported in custody and officials say security forces had regained control of the compound by mid-afternoon .