An explosion occurred in a town east of the Sri Lankan capital, Colombo, on Thursday but there were no casualties, a police spokesman said.