Blinking LED with transistor
It was probably a small CMOS IC that contains an RC oscillator, a counter and a MOSFET output stage with controlled current. 

There is no rule that says anything with only 3 leads has to be a simple part. 

Blinking LEDs contain a similar die and have only two external leads. 

Here you can find a sketchy datasheet of a similar part.