Official: Sri Lanka failed to heed warnings of attacks