Civilians guarded the facility. This is another episode of the Obama Holder effect.
Shades of Benghazi
At any rate, if the guy was in fact a contractor, then he probably had a contractor's badge granting access through the main gate and walked on in.
CIVILIANS Guarded the Navy Yard??? You MUST be JOKING!!