The partial lockdown on the base was issued around 10:50 a.m. after a tenant at the base reported an armed person.
Base Commanding Officer Scott Adams said the person playing with the air soft gun was a "young, enlisted sailor" who lives on base.
"He was actually firing shots of the air soft pistol out of the window toward a mirror in the parking lot," Adams said.
The sailor and a friend were both taken into custody without incident.
Weapons aren't permitted in barracks on the base, but it wasn't clear if an air soft gun is considered a weapon.
The Naval Criminal Investigative Service was investigating the incident.