The hikers were hospitalized with non-life-threatening injuries, while officials said they would assess the site of the attack.