A man has been charged with attempted murder following an attempt to car bomb a police station in Northern Ireland, authorities have said.