Officials say fighters affiliated to the Islamic State group carried out the attack which killed 10 people.