Initial reports said the attackers fired from a mosque within in the city , 30 miles west of Baghdad .