Two detained after bomb kills three at Thai festival