Life-saving: The young girl had to undergo a two-and-a-half-hour surgery to treat her injuries