Dynamical inverse problem for a Lamé type system