MOGADISHU – Two car bombs detonated by al Shabaab militants killed at least 10 people and flattened several houses in central Somalia's Hiraan region on Wednesday, a government-allied militia and a local elder said.

Al Qaeda affiliate al Shabaab has been waging an insurgency against Somalia's government since 2007. It was pushed out of Hiraan last year by government forces and allied clan militias known as macawisley, but has continued to stage attacks.

"We were awoken this morning by two huge explosions," Ahmed Nur, a local elder, said. "We have seen many houses leveled to the ground. At least 10 people died including civilians, soldiers and macawisley fighters."

Mahas district commissioner Mumin Mohamed Halane told state radio that one bomb targeted his house and the other hit the home of a federal lawmaker

Farah Abdullahi, a macawisley spokesman for the local Mahas district, also said the blasts killed at least 10 people.

READ MORE: Somalia army, allied militia kill 20 al Shabaab fighters

Mahas district commissioner Mumin Mohamed Halane told state radio that one bomb targeted his house and the other hit the home of a federal lawmaker.

Al Shaabab’s media office claimed responsibility in a statement, saying it had targeted "apostate militias and soldiers".

The insurgents have been under pressure since August when President Hassan Sheikh Mohamud launched a military offensive shortly after coming into office.

The government forces and macawisley have received support from United States and African Union troops.

ALSO READ: Militants attack hotel used by officials in Somalia's capital

The government says it has killed hundreds of al Shabaab fighters and recaptured dozens of settlements, although different sides often give conflicting accounts of clashes.

Despite the offensive, al Shabaab has carried out frequent attacks in recent months, including several in the capital Mogadishu against government installations and hotels.

Al Shabaab's activities have also restricted deliveries of international aid, compounding the impact of the Horn of Africa's worst drought in four decades.