Teryaki sauce becomes viscous after boiled
Teryaki has sugar in it.  If you bring it to a boil, the sugar will behave like it typically does in candy-making, and become viscous and possibly tar-like.

You often want this sort of behaviour if you're trying to make a barbeque sauce from meat drippings, but it sounds like you let it boil a little too long.