They were on their way to attend the opening of a girls ' school that had recently been renovated with U.S. humanitarian assistance when the bomb exploded , leaving a crater a few feet away from the school .