Man accused of endangering welfare of teen