A Dorset teacher has been banned from teaching