A car exploded outside a police station in Northern Ireland in an incident that grimly echoes the "troubles" terrorist attacks.