The incident occurred during installation of the machine at office in Thiruvananthapuram, say police