An Israeli air strike on a vehicle killed two Palestinian men and injured one other in the Gaza Strip on Wednesday, Palestinian medics said. The IDF confirmed the attack, which was carried out in collaboration with the Shin Bet. Sources in the army said that the strike targeted two operatives belonging of the Defenders of al-Aqsa, a Hamas offshoot. The men in question were allegedly planning a terror attack against Israel. Related articles: Artillery Corps ready for emergency, drill shows IDF strikes Gaza targets in response to rockets IDF strikes Gaza weapons factories The deceased were identified Anis Mahmoud Abu Alainain and Ashraf Mahmoud Salah, both aged 33. "Anis intended to carry out a terror attack that was in its final stages of planning, and has now been foiled," the IDF said. He was also involved in planning other attacks, which included attempts to smuggle bombs into Israel through Egypt. Vehicle was struck in Rafah (Photo: Reuters) The second operative, Salah, formerly belonged to the Popular Resistance Committees and had admitted to smuggling two terrorists to Egypt ahead of a planned suicide bombing on Israel. He has also been involved in arms trafficking. Sources in the defense establishment said that Hamas leaders were familiar with the two terrorists and were aware of their intention to attack Israel. The Islamist government failed to stop them, forcing the IDF to strike Rafah, they said. Hamas, meanwhile, claimed that the deceased were employees of Gaza's government. Rafah hospital on Wednesday (Photo: Reuters) The terrorist group's newspaper Al-Risalah reported that a rocket fired by an IAF aircraft hit a moving vehicle east of Rafah. Witnesses said that the car, a Toyota four-wheel drive, was entirely destroyed in the attack. The injured man, who was in critical condition, was taken to the Abu Yousef Al Najjar hospital. Two weeks ago three Palestinian terrorists were killed in an IAF strike while attempting to plant a bomb near Gaza's border fence. Hours earlier, three other operatives who were planning to launch rockets were killed in central Gaza. Yoav Zitun contributed to the report Follow Ynetnews on Facebook and Twitter Receive Ynetnews updates directly to your desktop