Time-dependent study of a black-hole laser in a flowing atomic condensate