Japan 's foreign ministry called the attacks a cowardly act .