Ok, time for a lesson in the laws of war.
A protected site, such as a mosque, is a place that is to be left alone if at all possible in times of war due to religous considerations.
HOWEVER
When a protected site is used for military purposes, such as staging an attack or storing weapons or being used as cover for people shooting at other people, then it loses it's protected status and becomes a legitimate target.