First-order phase transition in a laser threshold