Attacker who killed US troops in Syria was a recent recruit to security forces and was suspected of Islamic State ties prior to shooting