Cmdr. Christopher Johnson was relieved of his duties "due to a loss of confidence in his ability to command," the Navy said.