Sorry, forgot to mention that you have to drag the target onto the Fsm Component field.
Actually I'm thinking this script might be interesting to expand further, so you can broadcast events, target game objects etc. using animation events, without even adding an FSM to the game object...