Acting US Navy Secretary Thomas Modly has resigned following criticism of his handling of a crisis involving the captain of a coronavirus-stricken aircraft carrier.