Did Iran Intentionally Strike Targets That Would Avoid Casualties?

The airstrikes from Iran on US Forces on Tuesday evening were not targeting heavily occupied sites. Did Iran do that intentionally? If so, why? President Trump came out on Wednesday with his statement on the situation.