A collision in 2009 as the origin of the debris trail of asteroid P/2010 A2