Right away
Pick the tooth up by the crown, not the root. If it is dirty, rinse it briefly with milk or saline.
Try to place it back in the socket, or keep it in milk, and see a dentist as quickly as possible. For heavy bleeding or a head injury, go to an emergency department.