Laser-induced magnetization dynamics in a cobalt/garnet heterostructure