A miscommunication led to a two-minute lockdown Monday at the Norfolk Naval Shipyard, officials said.

The incident unfolded about 11:30 a.m. at the facility. Terri K. Davis, a spokeswoman for the shipyard, said in an email that the “sheltering alarm” and lockdown at the facility in Portsmouth, Va., came “in response to a potential active shooter,” but it was quickly determined that the initial information was wrong.

Davis said in an email that a contractor aboard the USS George H.W. Bush “suffered an electric shock,” which was “interpreted as someone had been ‘shot’ instead of shocked.”

The shipyard went under a lockdown based on that initial report. She said the lockdown lasted about two minutes and was lifted when it was determined to be a miscommunication.

Davis said the contractor who was shocked was in stable condition.