WASHINGTON — The Navy said Saturday it is replacing the admiral in command of an aircraft carrier strike group in the Middle East, pending the outcome of an internal investigation into undisclosed allegations of inappropriate judgment.

Rear Adm. Charles M. Gaouette is being sent back to the USS John C. Stennis’ home port at Bremerton, Washington state, in what the Navy called a temporary reassignment. The Navy said he is not formally relieved of his command of the Stennis strike group but will be replaced by Rear Adm. Troy M. Shoemaker, who will assume command until the investigation is completed.

It is highly unusual for the Navy to replace a carrier strike group commander during its deployment.

The Navy did not reveal details of the allegations, citing only an accusation of “inappropriate leadership judgment” that arose during the strike group’s deployment to the Middle East.

The Stennis group deployed from Bremerton in late August and entered the Navy 5th Fleet’s area of operations in the Middle East on Oct. 17 after sailing across the Pacific. The Stennis made port visits in Thailand and Malaysia on its way to the Middle East.

It deployed four months earlier than scheduled in response to a request by the commander of U.S. Central Command, Marine Gen. James Mattis, to maintain two aircraft carriers in the Middle East.