Two Americans, including one who complained that the world was treating Muslims “like dogs,” bought guns and a grenade and wanted to carry out a terror plot against a New York synagogue, officials said yesterday.

One of the alleged terrorists arrested in a sting operation also expressed interest in bombing the Empire State Building, police Commissioner Raymond Kelly said.