Temperature dependence of terahertz emission by an asymmetric intrinsic Josephson junction device