Kerala Ramadan congregation ends with pledge against terrorism