Believed to have attacked detainees as revenge for fatal terrorist attack