It was an act of terrorism, one of the security officials told AFP on condition of anonymity.