(CNN)ISIS claimed responsibility for a suicide car bomb attack Friday near the U.S. Consulate in the Kurdish Iraqi city of Irbil, according to several Twitter accounts linked to the terror group. The U.S. Consulate was the target of the attack, ISIS said. At least four people were killed and 18 injured, police said. All U.S. Consulate personnel were safe and accounted for following the explosion, U.S. State Department spokeswoman Marie Harf said. Irbil is the capital of Iraq's semi-autonomous Kurdistan Regional Government. Police said the incident began with an explosion of a small improvised bomb in the area. After that blast, a car moved in the direction of the consulate. Security personnel fired at the car, which exploded but did not reach the consulate, a police official said. It appeared that people inside the car detonated explosives that the vehicle was carrying, according to the police official. A separate official, B.G. Hazhar Ismail, said three civilians were killed and five others were injured. Ismail is a spokesman for the Peshmerga, the  force that defends Iraq's Kurdish region. The blast sent a huge fireball into the sky on a street parallel to the consulate. Dark smoke filled the air, and gunfire was heard intermittently for the next hour. One witness said he saw attackers in a gunbattle with consulate security and police. Helicopters circled the neighborhood where the blast occurred, and a loudspeaker at the consulate building warned people to stay indoors and away from windows. In addition to the U.S. Consulate, the blast occurred immediately across the street from a strip of bars, cafes and shops popular with expats and consulate employees. The State Department thanked the response by the Kurdish government and will investigate the bombing together with them. "The United States will continue to stand with the people of the Iraqi Kurdistan Region and all Iraqis as we work together in confronting these terrorist acts and towards our shared goal of degrading and defeating (ISIS)," the department said in a statement. CNN's Kareem Khadder and Jason Hanna and journalist Mat Wolf contributed to this report.
All U.S. Consulate personnel safe after blast, State Department spokeswoman says .
Suicide bombers blow up car near the U.S. Consulate in Irbil, Iraq .