Kerala High Court raps Devaswom officer