Israeli forces warned the mosque would be targeted, according to a Reuters photographer.