The above shall not apply to any action for injury, wrongful death or other damage.(a) Intentionally caused or contributed by an officer of the commonwealth or any of its agencies or political subdivisions; or (b) Resulting from the deprivation of any rights, privileges or immunities secured by the United States constitution or the constitution of the commonwealth.4.