A TUI flight bound for Manchester was forced to divert and refuel after declaring an emergency.