Japan takes quick action to protect rare beetle